in reply to Switch and __DATA__

Since you're already using Perl V.5.12, you might be able to use given/when instead?
See feature and perlsyn: Switch-statements.

Replies are listed 'Best First'.
Re^2: Switch and __DATA__
by atend (Acolyte) on Jun 16, 2011 at 14:08 UTC

    Aha, so that's how you do it nowadays! Guess I don't use switch statements all too often. :) Thank you.