Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 surveying the Monastery: (4)
As of 2016-06-28 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (350 votes). Check out past polls.