Isn't this easier?
use if $] ge '5.016', feature => 'fc'; BEGIN { eval 'fc 1' or eval 'sub fc ($) { lc $_[0] }' }; ...; @list = sort { fc $a cmp fc $b } @list;
In reply to Re: Perl version dependent code
by tobyink
in thread Perl version dependent code
by Wyrdweaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |