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

Re: Re(2): What Is 'my' Interested In?

by benizi (Hermit)
on Feb 02, 2004 at 20:24 UTC ( [id://325982]=note: print w/replies, xml ) Need Help??


in reply to Re(2): What Is 'my' Interested In?
in thread What Are Your Live Journal Friends Interested In?

For Getopt::Long, I like to go one step further and have the defaults 'inlined'. Where Ovid wrote:

GetOptions( ... 'verbose=i' => \my $VERBOSE, ... 'minimum=i' => \my $minimum, ); + $minimum ||= 1; $VERBOSE ||= 0;

I like to write:

GetOptions( ... 'verbose=i' => \(my $VERBOSE = 0), ... 'minimum=i' => \(my $minimum = 1), );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found