Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Script using Getopt::Long running endlessly after beeing packaged by pp

by Anonymous Monk
on Oct 18, 2012 at 13:53 UTC ( #999738=note: print w/ replies, xml ) Need Help??


in reply to Script using Getopt::Long running endlessly after beeing packaged by pp

Instead of large comment MAIN a sub Main

Instead of  defined($type) == '0' write  !defined $type or  not defined $type

Instead of  defined($date) == '1' write  defined($date) or defined $data

So without changing too much of your program write that as


Comment on Re: Script using Getopt::Long running endlessly after beeing packaged by pp
Select or Download Code
Re^2: Script using Getopt::Long running endlessly after beeing packaged by pp
by HJO (Acolyte) on Oct 18, 2012 at 14:52 UTC

    Well, thanks for the formatting tips, guess I'll pass Perl::Critic much easier now^^

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-07-07 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls