in reply to Perl Tutorial code uses "qw" but has an error when run

This syntax has been deprecated some versions ago.

Put parens around the qw.

for my $d ( qw( 2006-10-21 15.01.2007 10/31/2005 ) )

I remember perltidy breaking because of this code in 5.12 .

update
Yep changed in 5.14

perldelta#Use-of-qw(...)-as-parentheses

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re: Perl Tutorial code uses "qw" but has an error when run ( update Perldelta 5.14)
  • Download Code