Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Difference between my ($foo) & my $foo

by Anonymous Monk
on Feb 12, 2009 at 07:50 UTC ( [id://743239]=note: print w/replies, xml ) Need Help??


in reply to Difference between my ($foo) & my $foo

$ perl -MO=Deparse,-p - my($Files) = @_; my $FilesR = @_; ^D (my($Files) = @_); (my $FilesR = @_); - syntax OK
Its list context versus scalar context, example
@_ = 0 .. 3; my( $one, $two, $three ) = @_; print "one($one)two($two)three($three)\n"; ( $one, $two, $three ) = scalar @_; print "one($one)two($two)three($three)\n"; __END__ one(0)two(1)three(2) one(4)two()three()

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found