Using $file as the name of the file, open up a filehandle for each text file. Then you can loop through to the 32nd line and grab it. Then close the file and open the next one. Try this:
foreach $file (@userff)
{
open (IN, $file) or die "Can't open $file.";
for ($i = 1; $i <= 32; $i++)
{
$line = <IN>;
}
# $line now = line 32
push $line @userii;
close IN;
}
I can't think of a more efficient way, but there may be one. --Derek
"Fear not the storm for this is where we grow strong."