> I've tried using glob, but I can only get the file
> _names_ into the array, not contents. I guess I could
> just write three separate opens [i.e., open(FH1,
> "file1.txt") and so on] and then put each into an
> array, then push those onto @lines, but it seems like
> there should be an easier way.

my @files = glob(...pattern...);
my @lines;
{
    local @ARGV = @files;
    #read data
    #save into @lines
    
} # Keep @ARGV localised

Untested, but I'd be surprised if this approach doesn't work.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to