Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: need help urgent using @ARGV

by InfiniteSilence (Curate)
on Jan 19, 2012 at 03:54 UTC ( #948666=note: print w/replies, xml ) Need Help??


in reply to need help urgent using @ARGV

use strict; use Getopt::Long; my $database = ''; my $servername = ''; my $result = GetOptions ("database=s" => \$database, # string + "servername=s" => \$servername); # stri +ng print qq|USAGE: perl backup.pl --database=<database> --servername=<ser +vername>\\ n| unless ($database && $servername); my $stmnt =qq|BACKUP database "$database" TO DISK = N'c:\\bak\\master. +dmp'\n|; print $stmnt;

You get the idea.

Celebrate Intellectual Diversity

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948666]
help
Chatterbox?
[ambrus]: ambrus's scratchpad
[ambrus]: Also, I was wrong, apparently you have to support both periodic and one-shot timers in an AnyEvent backend
[Corion]: ambrus: That looks deceptively simple, but maybe that's simply all that's needed. Which would be great! I hope I get to test it tomorrow, thanks!!
[choroba]: Hm, unrelated question.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-12-08 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.