Swith the '=>' for ',' in your hash initialisation:
my %map = ( Page, 'mypage', Index, 'myindex', );
In reply to Re: why doesn't constant work?
by BrowserUk
in thread why doesn't constant work?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |