Christopher Spears wrote:

In regards to an earlier question about removing a
file with Perl, couldn't you just use a system call or
exec?

Yes, but it would be much much much much much better to just use unlink()

 perldoc -f unlink

Why shell out? Especially when theres a built in, portable method?

 unlink $file or die "Couldn't unlink $file: $!";

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to