Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Builtin functions defaulting to $_

by ikegami (Patriarch)
on Mar 23, 2007 at 15:51 UTC ( [id://606271]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub myfunc {
       my $arg = @_ ? $_[0] : $_;
    ...
          ...
       }
    }
    
  2. or download this
    sub myfunc {
       for (@_ ? $_[0] : $_) {
          ...
       }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found