develooper Front page | perl.perl5.porters | Postings from August 2001

Re: Backwards compatibility breakage in foreach?

Thread Previous | Thread Next
From:
Jeff 'japhy/Marillion' Pinyan
Date:
August 21, 2001 11:11
Subject:
Re: Backwards compatibility breakage in foreach?
Message ID:
Pine.GSO.4.21.0108211410500.29-100000@crusoe.crusoe.net
On Aug 21, Graham Barr said:

>You will find the answer to your question in perldelta.pod for 5.6.0
>
>  =head2 Improved C<qw//> operator
>
>This change meant that the list created by qw() is now a list of
>constants.

It also means you (specifically, Michel Rodriguez ;) ) can write code like

  for qw( a b c ) {
    # ...
  }

and it will work.  Quirky, eh?

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About