You're seeing the data on the very last line, which I'm guessing isn't formatted correctly with the rest of the file. The last line seems to contain something that becomes '1' in string context, and that's about all you can say about it based on what you've given.
Update: Also, import the necessary flock constants from the Fcntl module (use Fcntl qw(:DEFAULT :flock);). Saying flock(FH, 1) . . . isn't portable. Fcntl will allow you to say flock(FH, LOCK_SH) . . . or flock(FH, LOCK_EX) . . ..
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: array split problems
by hardburn
in thread array split problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |