Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

(tye)Re: ((Conditional, Ternary Operator)) Specifying default and non-default

by tye (Sage)
on Oct 02, 2000 at 22:49 UTC ( [id://34954]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub def {
          $_[0]= def($_[1],"") if ! defined $_[0];
          return $_[0];
      }
    
  2. or download this
      $ext{index} = 'pod';
      for my $pod (  qw( HostCycle Instinet index )  ) {
          system "pod2html $pod" . def($ext{$pod},".pm") . " > $pod.html";
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found