Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Perl Tutorial code uses "qw" but has an error when runby 1nickt (Canon) |
on May 02, 2018 at 14:52 UTC ( [id://1213947]=note: print w/replies, xml ) | Need Help?? |
If you want to loop through the list with for you'll still have to use parens around the list that qw generates. Note that I am using ^ for the qw delimiter to disambiguate from the list parens. Also note that you don't need the list parens if using a postfix for:
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|