in reply to Re: split loop error
in thread split loop error

But should this fail?

In other words, is Perl on Linux correct or is Perl on Solaris correct? Am I trying to do something that I should not, or is Linux not doing something it should!? Thanks, Ted

Replies are listed 'Best First'.
Re: Re: Re: split loop error
by tall_man (Parson) on Feb 03, 2003 at 01:03 UTC
    It looks like a perfectly legitimate split statement either way to me, and it did not fail on my Linux version (at least with the simple input string  "abs <def> ddd <www>"). What input are you giving it?

    This is perl, v5.8.0 built for i686-linux-thread-multi
    Linux xxx.yyy.com 2.4.8-26mdk

      Thanks for checking this out tall man.

      I tried it with your test case and it fails too. (That is it fails when using $line but not $_). My test cases were about the same as yours...

      Details on the linux system are...

      Linux xxx.yyy.edu 2.4.18-19.8.0smp #1 SMP Thu Dec 12 04:36:25 EST 2002 + i686 i686 i386 GNU/Linux
      And perl...
      This is perl, v5.8.0 built for i386-linux-thread-multi


      So could this be a bug? in i386-linux-thread-multi?

      Thanks!