Guest_imported
New member
- Jan 1, 1970
- 0
How do i read the file names from a directory? how do iopen it?
open (MYDIR, "usr/local/bin/mydir"
|| die "Failed to open dir $!"; ?
would this leave me with <MYDIR> containing all the file names in that directory?
could i then use
for($i; <MYDIR>; $i++)
{
$files[$i] = split (/.dat/, $_);
}
to put them into an array removing the .dat extentions?
thanks
open (MYDIR, "usr/local/bin/mydir"

would this leave me with <MYDIR> containing all the file names in that directory?
could i then use
for($i; <MYDIR>; $i++)
{
$files[$i] = split (/.dat/, $_);
}
to put them into an array removing the .dat extentions?
thanks