Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: foreach problem

by grinder (Bishop)
on Aug 27, 2008 at 21:15 UTC ( #707316=note: print w/replies, xml ) Need Help??

in reply to foreach problem

First thing to do would be to ditch the Switch.

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.

Your handling of @ARGV would be handled in a more orthodox manner with Getopt::Std or Getopt::Long. Doing so just might make your problem go away.

• another intruder with the mooring in the heart of the Perl

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://707316]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2023-06-01 16:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found