Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Adding Default Values [for BEGINNERS]

by ikegami (Pope)
on Dec 21, 2006 at 22:52 UTC ( #591214=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file = <STDIN>;
    chomp($file);
    $file ||= "somelist";
    
  2. or download this
    my $file = <STDIN>;
    chomp($file);
    $file = "somelist"
       if not length $file;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-11-29 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?