Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Pass an optional parameter to a subroutine

by robartes (Priest)
on Sep 15, 2006 at 08:17 UTC ( [id://573069]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ref_mail = shift;
    my $db_write = shift;
    # If $db_write is defined, use that, otherwise default to 1
    $db_write = defined($db_write)?$db_write:1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found