Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?

by vsespb (Hermit)
on Sep 26, 2013 at 11:45 UTC ( #1055822=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f1
    {
    my ($x, $y) = @_;
    z($x, $y);
    }
    
  2. or download this
    sub f2
    {
    z($_[0], $_[1]);
    }
    
  3. or download this
    sub z
    {
    ...
    my $x = 4;
    f1($x, $x);
    
  4. or download this
    sub z
    {
    ...
    }
    my $x = 4;
    f2($x, $x);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-11-24 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls