P is for Practical | |
PerlMonks |
Re: Script using Getopt::Long running endlessly after beeing packaged by ppby Anonymous Monk |
on Oct 18, 2012 at 13:53 UTC ( [id://999738]=note: print w/replies, xml ) | Need Help?? |
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 <Reveal this spoiler or all in this thread>
In Section
Seekers of Perl Wisdom
|
|