Just FYI and not really apropos of much, ::default() works as well and avoids possible &-ish complications:
>perl -wMstrict -le "use 5.10.0; ::default(); sub default { print 'works' } given ('x') { when ('y') { print 'y' } default { print 'default' } } " works default
In reply to Re: "use 5.10.0" creates weird syntax error on sub named "default"
by AnomalousMonk
in thread "use 5.10.0" creates weird syntax error on sub named "default"
by aixtal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |