Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Simply Deleting a File

by btrott (Parson)
on Mar 02, 2001 at 06:58 UTC ( [id://61736]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://61736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found