Hi all,
 
Can someone help me with a perl script as I'm a n00b at this..
 
I have a directory (news/) which contains files which are dated eg.  011213.txt and inside it contains HTML code.
 
I want to be able to look inside this directory and grab each file and print the contents of all of them. I can do some of this code but I don't know how to get it to select every file.
Each file needs processing before printing so it's not like doing a `cat ./news/*.txt` in bash because I need to add some HTML code around each file before printing it.
So the bash equivalent would need to be something like below but in Perl:
 
ls -lt ./new/*.txt | while read FILE
do
   process $FILE
done
 
Another thing I need to know how to delete a file in Perl, I looked up the Perl Docs' on perl.com but the delete command talks about hashed file records and so on and no to do a basic DEL FILE...????
 
Hope some guru can help me..

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L

 

Reply via email to