develooper Front page | perl.beginners | Postings from March 2008

How to make all files in one directory to an array

Thread Next
From:
sivasakthi
Date:
March 20, 2008 05:52
Subject:
How to make all files in one directory to an array
Hi all,

How to form array by using the files available in particular directory ?

for example, /tmp contains the following files..

#ls /tmp
example.txt 
file1.txt
file2.txt
file3.txt
sample.txt
www.txt
zzz.txt

i want to take all the above files in to one array? how to do that?


Thanks,
Siva




Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About