Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Simple Perl Backup help

by toolic (Bishop)
on Aug 03, 2012 at 19:30 UTC ( #985332=note: print w/replies, xml ) Need Help??


in reply to Simple Perl Backup help

Another way using perldoc perlre (case-insensitive and only looks at 1st character):
if ( $input =~ /^n/i ) { die "Program is shutting down.\n"; } elsif ( $input =~ /^y/i ) { print "Backup is beginning......\n"; last; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-10-01 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (8 votes). Check out past polls.