To make that work you have to construct a "simple statement" for the outer statement modifier (the for loop)
do { die "Unknown char! \n" unless exists $testHash{$_} } for (@test);
Read the paragraph 'Simple Statements' in perlsyn man page if you want to know more
In reply to Re: checking array elements aginst another array
by jethro
in thread checking array elements aginst another array
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |