>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:
SHC> John W. Krahn wrote: >> Shawn H Corey wrote: >>> Steve Bertrand wrote: >>>> You can replace them all with this: >>>> >>>> my $station = $channels{ $opt_s }; >>> >>> my $station = $channels{ $opt_s } || help(); >> >> my $station = $channels{ $opt_s } or help(); SHC> my $station = $channels{ $opt_s } || '' or help(); why the || '' ?? the help sub doesn't seem to exit/die so it is buggy imo. when you check command args and fail, you should exit, not issue a help screen and continue. what if there is output from the program to be sent somewhere, then it would be prefixed by all the help noise. i see your point in initializing that to a defined value but that shouldn't ever continue if help is printed. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/