in reply to Pseudo-switch question
This looks like good, idiomatic Perl code, fletcher -- nothing to worry about.
The one "side effect" is that it temporarily exposes the test value in the global $_, such that it could be accessed from within a subroutine called from within one of your # do something blocks, although this isn't likely to cause problems in properly written code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pseudo-switch question
by pemungkah (Priest) on Jul 22, 2003 at 16:12 UTC | |
by fletcher_the_dog (Friar) on Jul 22, 2003 at 16:27 UTC | |
by bunnyman (Hermit) on Jul 22, 2003 at 17:47 UTC | |
by pemungkah (Priest) on Oct 14, 2003 at 21:28 UTC |