Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Perl Idioms Explained - my ($foo, $bar) = @{shift(@_)}{qw/ -foo -bar /}

by ihb (Deacon)
on Apr 13, 2004 at 03:58 UTC ( #344610=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        {
            my %SELF = map { $_ => '' } qw( foo bar baz );
    ...
                return $self;
            }
        }
    
  2. or download this
        {
            my %SELF = (
    ...
                return $self;
            }
        }
    
  3. or download this
        sub new {
            my $self = bless {
    ...
    
            return $self;
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://344610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-08-22 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (164 votes), past polls