Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[LanX]: weekend ... and waiting that chacellor choroba finally catches up ;-p
LanX last weekend or the one before (???)
choroba needs more questions to provide answers to
jedikaiti looked at last hour of CB, saw "boos" but read "boobs"

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-09-20 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?