> -Original Message-
> From: siren jones [mailto:[EMAIL PROTECTED]]
> Subject: simple file reading question
>
> I have a file containing a list of names, for example:
>
> S2000123456.met
> S2000123457.ozone
> S2000123458.hdr
> S2000234569.met
>.
&
On Mar 6, siren jones said:
>I have a file containing a list of names, for example:
>
>S2000123456.met
>S2000123457.ozone
>S2000123458.hdr
>S2000234569.met
>
>I'm looking for a short way to read these filenames onto an array.
Open the file, read the text to an array, close the file. How much
sh
I mean
my @files = glob("$indir/S*"); ## you can use wildcards
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 10:20 AM
To: 'siren jones'; [EMAIL PROTECTED]
Subject: RE: simple file reading question
use the
use the glob() function
my @files = glob("$indir/filename");
-Original Message-
From: siren jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: simple file reading question
I have a file containing a list of names, f
I have a file containing a list of names, for example:
S2000123456.met
S2000123457.ozone
S2000123458.hdr
S2000234569.met
.
. etc.
I'm looking for a short way to read these filenames onto an array.
I tried:
my @fils = <$indir/filename>;
. but this just gives me the name of my input