in reply to Re^2: reduce line of code
in thread reduce line of code
I guess this is what Sun751 meant. His non-working example scopes the $cmd variable to the if ... else blocks.
In Section
Seekers of Perl Wisdom
in reply to Re^2: reduce line of code
in thread reduce line of code