in reply to Wierd error message

Your line eight should be something like,

@vals = split /(\n)/, $_;

I don't understand what the "fool" routine is. You have a very straightforward loop, done in C-style. Perhaps if you included some of the Tie code?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Wierd error message
by chromatic (Archbishop) on Aug 17, 2006 at 01:03 UTC

    This use of while doesn't seem to set $_ for me. Which version of Perl are you using?

      I was thinking of while (<$fh>) { }, which does.

      After Compline,
      Zaxo