develooper Front page | perl.perl5.porters | Postings from January 2006

Fortunate syntactic oddity

Mark Jason Dominus
January 28, 2006 11:47
Fortunate syntactic oddity
Message ID:

As a side effect (unexpected?) of the way "qw(...)" is handled, this
syntax works, and has worked since 5.6.0:

        for my $i qw(don't put that in your nose) {
                print ">$i<\n";

It seems to me that this might be worth documenting and supporting. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About