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.
In reply to Re: Pseudo-switch question
by simonm
in thread Pseudo-switch question
by fletcher_the_dog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |