Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 pondering the Monastery: (13)
As of 2014-09-30 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (383 votes), past polls