Is this what you are looking for ?
if ($target !~ /..../) { print "Syntax Error: Target should be x or y or z\n"; pod2usage(-verbose => 1); # just the usage exit; }
Cheers,
R.
In reply to Re: Pod Usage
by Random_Walk
in thread Pod Usage
by perl@newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |