On Thu, 25 Mar 2010 09:54:13 -0400
"Pry, Jeffrey" <[email protected]> wrote:
> Hey,
>
> I have a subroutine
>
> sub displayPage($) {
>
> my($server) = shift;
> print $server;
> }
>
> Which I can call using displayPage("servername");
>
> My question is lets say I wanted to pass a password as well. So I
> would like to call it as displayPage("servername","mypassword");
>
> How would I do this?
You shouldn't use sub prototypes; they don't do what you think.
sub display_page {
my $server = shift @_;
my $password = shift @_;
}
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/