On Wed, Jan 21, 2004 at 10:39:09PM -0600, Ken Williams wrote:
> This is probably because 5.6 expands the whole for(...) list in 
> advance, but 5.8 evaluates it lazily.

Ah, but I'm using stock Perl on Panther, which is 5.8.1-RC3.  It also
happens on my Debian Unstable box which is running 5.8.2.

> In any case, it's always a little risky to use $1 and friends more than 
> 1 statement after the regex they come from.  Too many things clobber 
> 'em at a distance.

Yeah, that's my feeling.  And if the code ever becomes more complex then
their meaning can become pretty obscure.

-- 
Andy <[EMAIL PROTECTED]> - http://anime.mikomi.org/ - Community Anime Reviews 
  Good men, if such there be, would either remain true to their political
  faith and lose their economic support, or they would cling to their
  economic master and be utterly unable to do the slightest good. The
  political arena leaves one no alternative, one must either be a dunce or
  a rogue.    -- Emma Goldman

Reply via email to