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.In reply to Re^3: Print subroutine problem
by CountOrlok
in thread Print subroutine problem
by Shivaramakrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |