Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by vsespb (Chaplain)
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?
[karlgoethebier]: isn't the earth flat?
[LanX]: kgb only when confirmed by Fox news

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-10-24 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (289 votes). Check out past polls.

    Notices?