in reply to Simply Deleting a File

No, the real problem here is that your #! line is wrong. You have a semicolon at the end. It should be:
#!/usr/bin/perl
The error message you're getting is from your *shell*, not from Perl.

Of course, it's also true that you need to quote your filename that you're passing to unlink, and that you need to add some error checking on unlinking the file.

Replies are listed 'Best First'.
Re: Re: Simply Deleting a File
by jeffpflueger (Beadle) on Mar 03, 2001 at 00:17 UTC
    YES! The old semi-colon. That was the problem. Thank you! I often get in problems for not having one, this is the first time I had problems for having one. Thanks all for your help and input!