Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Print subroutine problem

by Shivaramakrishnan (Initiate)
on Apr 05, 2013 at 18:47 UTC ( #1027198=note: print w/replies, xml ) Need Help??

in reply to Re: Print subroutine problem
in thread Print subroutine problem

I wanted to know is there a way to modify my current script to accept ip address of the database server (in script used as hostname) as an arguement since I am implementing this over multiple database servers and don't want to statically define an IP.

Replies are listed 'Best First'.
Re^3: Print subroutine problem
by CountOrlok (Friar) on Apr 05, 2013 at 18:54 UTC

    Just the way you have the line 'database=s' => \$database, you can add a line for $hostname.

    Also, look into making your usage statement better, i.e. tell users that they can also pass --user, --database, etc. in the command line.

    Just a side note, it hurts my eyes seeing the word "querys". Someone is going to get an error if they type the correct pluralization in the script.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027198]
[erix]: we look right through you ! ;)
[erix]: italy berserks
[erix]: pretty absurd to blame them for "criminal association in illegal immigration"

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-03-19 22:34 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.