Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Variable::Eject(3)    User Contributed Perl Documentation   Variable::Eject(3)

NAME
       Variable::Eject - Eject variables from hash to current namespace

VERSION
       Version 0.02

SYNOPSIS
	   use Variable::Eject;

	   my $hash = {
	       scalar => 'scalar value',
	       array  => [1..3],
	       hash   => { my => 'value' },
	   };

	   # Now, eject	vars from hash
	   eject(
	       $hash =>	$scalar, @array, %hash,
	   );

	   # Let's look
	   say $scalar;
	   say @array;
	   say keys %hash;

	   # Let's modify (source will be modified)
	   $scalar .= '	modified';
	   shift @array;
	   $hash{another} = 1;

EXPORT
       A list of functions that	can be exported.  You can delete this section
       if you don't export anything, such as for a purely object-oriented
       module.

FUNCTIONS
   eject ( $source_hash	=> $scalar, @array, %hash ... );
AUTHOR
       Mons Anderson, "<mons at	cpan.org>"

BUGS
       Please report any bugs or feature requests to "bug-variable-eject at
       rt.cpan.org", or	through	the web	interface at
       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Variable-Eject>.	 I
       will be notified, and then you'll automatically be notified of progress
       on your bug as I	make changes.

COPYRIGHT & LICENSE
       Copyright 2009 Mons Anderson, all rights	reserved.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.24.1			  2009-11-20		    Variable::Eject(3)

NAME | VERSION | SYNOPSIS | EXPORT | FUNCTIONS | AUTHOR | BUGS | COPYRIGHT & LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Variable::Eject&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help