in reply to autosplit behaviour with and without F

I cannot duplicate that.
$ cat -vET ttt #!/usr/bin/perl -apF$ split;$ $ perl -le 'print $]' 5.008 $ perl -MO=Deparse ttt LINE: while (defined($_ = <ARGV>)) { our(@F) = split(" ", $_, 0); split(" ", $_, 0); } continue { print $_; } ttt syntax OK $

Note that also the first argument of split is translated differently (and incorrect in your case). Perhaps you are dealing with an older version of Perl, which has even more bugs in B::Deparse?

Abigail

Replies are listed 'Best First'.
Re: Re: autosplit behaviour with and without F
by Jasper (Chaplain) on Aug 13, 2003 at 13:30 UTC
    I'm using 5.6.0, so you're probably right.

    It's not Deparse, though, the program runs differently (in the way Deparse indicates), so it's Perl that's at fault. I can't duplicate it in 5.8.0, either, so it would appear to be 'fixed'.

    Jasper
      If you can't duplicate it 5.6.1, I would call it one of the many bugs in 5.6.0.

      ------
      We are the carpenters and bricklayers of the Information Age.

      The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

      Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.