Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Simple Perl Backup help

by davido (Archbishop)
on Aug 03, 2012 at 19:46 UTC ( #985336=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IO::Prompt::Tiny qw/prompt/;
    
    my $answer = prompt("Yes or no? (y/n)", "n");
    
  2. or download this
    if( prompt( "Backup $path? (y/n)", 'y' ) =~ m/^y/i ) {
        print "Backup beginning...\n";
    ...
        my @directories = @_;
        # Your backup code here.
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (15)
As of 2014-07-31 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls