Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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??

Help for this page

Select Code to Download


  1. or download this
    sub msg {
               $msg_num = @_[0];
    # ...
    
  2. or download this
    @_[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 admiring the Monastery: (3)
As of 2025-03-17 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.