Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: calling a sub from an if statement

by le (Friar)
on Jul 24, 2000 at 00:01 UTC ( [id://24009]=note: print w/replies, xml ) Need Help??


in reply to calling a sub from an if statement

I just wanted to say that
sub msg { $msg_num = @_[0]; # ...
is not necessarily what you want.
@_[0] # An array slice $_[0] # The first element of the array @_ (usually passed to the subro +utine)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2025-02-17 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found