in reply to A slight variation in warn output... why?

It looks to me like the file hadn't been opened yet in the first invocation, so M doesn't exist.

-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
  • Comment on Re: A slight variation in warn output... why?

Replies are listed 'Best First'.
Re: Re: A slight variation in warn output... why?
by isotope (Deacon) on Jul 30, 2003 at 17:55 UTC
    open (M, "tail +3 $_ |") or die $!; # Do you mean $file instead of $_ here?
    Update: I know it doesn't look like it should make much difference, but might as well rule out a possible scoping issue with $_ first. Speaking of scoping, I meant to reply to the OP. Oh well.

    --isotope