note
grinder
<p>First thing to do would be to ditch the Switch.</p>
<p>This is a deprecated module in production code, and only served to examine and explore what a real switch construct would look like. This lay the groundwork for the switch statement in Perl 6, which in turn was backported to Perl 5 in the 5.10.0 release (via a feature pragma). The Switch module is implemented via a source filter, and is the cause of many strange action-at-a-distance errors.</p>
<p>Your handling of <tt>@ARGV</tt> would be handled in a more orthodox manner with [cpan://Getopt::Std] or [cpan://Getopt::Long]. Doing so just might make your problem go away.</p>
<div class="pmsig"><div class="pmsig-29008">
<p align="right"><font size="-2">• another intruder with the mooring in the heart of the Perl</font></p>
</div></div>
707299
707299