Noah:
sub exiting {
my ($hostname, %login) = @_;
Passing arguments like this has no such problem.
But you'd better pass the hash as a reference to the subroutine.
exitint($hostname, \%login);
sub exiting {
my $hostname = shift;
my %login = %{+shift};
...
}
print "login: $login $hostname\n";
I don't see where you defined the variable of $login.
Have you 'use strict' and 'use warnings'?
--
Jeff Pang
http://home.arcor.de/pangj/
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/