Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: foreach problem

by grinder (Bishop)
on Aug 27, 2008 at 21:15 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found