Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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


Comment on Re: need help urgent using @ARGV
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948666]
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: (13)
As of 2015-07-01 21:08 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 (21 votes), past polls