Randy,

You can delete a file, or a list of files, using "unlink". Example:
##
unlink $file;
##

perldoc -f unlink

Hope that helps.

Ahmed
[EMAIL PROTECTED] | http://www.photo.net/user/ahmed

Randolph S. Kahle wrote:

> I am writing my first perl program (copied from a magazine).
> 
> The only line that is not working is
> 
> system( rm -rf $file );
> 
> The error message is:
> 
> Can't call method "rm" with a package or object reference.
> 
> Any tips?
> 
> Thanks -- Randy


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

Reply via email to