Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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; }


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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-07-02 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (30 votes), past polls