in reply to Re^2: Print subroutine problem
in thread Print subroutine problem
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 Section
Seekers of Perl Wisdom