Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Multiple / Mapping Search and Replace

by toolic (Bishop)
on Mar 18, 2009 at 23:45 UTC ( [id://751602]=note: print w/replies, xml ) Need Help??


in reply to Multiple / Mapping Search and Replace

A couple of comments on pod2usage, um, usage :)

Since pod2usage by default exits, your explicit exit calls are redundant at best and confusing at worst. This

pod2usage(-verbose => 1) && exit if defined $opt_help;
is the same as this:
pod2usage(-verbose => 1) if defined $opt_help;

You could also take advantage of the -message option. This

print "$0: input_file required\n"; pod2usage(-verbose => 0) && exit
is the same as this:
pod2usage(-verbose => 0, -message => "$0: input_file required\n")

A comment on Getopt::Long usage: instead of declaring several separate $opt_XXX scalar variables, it might be more natural Storing options values in a hash.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found