Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Simple Perl Backup help

by toolic (Chancellor)
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; }


Comment on Re: Simple Perl Backup help
Download Code

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 chanting in the Monastery: (10)
As of 2014-12-27 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls