Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: script for deleting html, images and css from server

by Corion (Patriarch)
on Apr 04, 2015 at 08:29 UTC ( [id://1122400]=note: print w/replies, xml ) Need Help??


in reply to script for deleting html, images and css from server

die unless ( $answer eq 'Y' or 'y' );

Your syntax is off here. or does not bind strong enough, and even if it did, 'Y' or 'y' will always result in 'Y'.

You will need to write something like:

die unless ( $answer eq 'Y' or $answer eq 'y' );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found