Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Best option for "switch/case" functionality?by TheDamian (Vicar) |
on Jun 27, 2016 at 11:33 UTC ( [id://1166654]=note: print w/replies, xml ) | Need Help?? |
Grab the experimental.pm module from CPAN (or you may already have it if you have a recent version of Perl installed). Then, at the top of each file add:
Then continue to use given/when under every version of Perl that supports it...without annoying warnings or meta-warnings.
In Section
Seekers of Perl Wisdom
|
|