On Tue, Jul 31, 2012 at 23:47:45 -0500 , Hal Wigoda wrote: > Use the switch/case combination. > > On Tue, Jul 31, 2012 at 11:41 PM, Paul.G <medur...@yahoo.com.au> wrote: > > Hi All > > > > > > Does perl have a case statement or an equivalent? > > > > > > Cheers > > > > Paul
Don't use Switch.pm. It's a source filter and causes indeterministic code evalution. See perldoc -q switch on a recent perl (5.12 or so or above). Consider a dispatch table. -- Chris Nehren | Coder, Sysadmin, Masochist Shadowcat Systems Ltd. | http://shadowcat.co.uk/
pgpzHvtoASnYU.pgp
Description: PGP signature