Ariel Scolnicov wrote:
> *SPOILER*
> Here's a solution (that only works for files...)
> *SPOILER*
> > 
>     #!/usr/local/bin/perl -w
>     # Print middle line of file(s)
>     use strict;
>     open F,$ARGV[0] or die;
>     open G,$ARGV[0] or die;

OK, and now flock both handles with LOCK_EX after opening them :)

Cheers,
Philip
-- 
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.

Reply via email to