Hello all, I have a question about passing a hash to a fucntion. Suppose you had the following script:
sub function { my %operating_systems = &populate_hash(%operating_systems); do_something_with_hash(); } sub populate_hash { my %operating_systems = ?????; $operating_systems{"microsoft"} = "Windows"; $operating_systems{"apple"} = "Macintosh"; ... return %operating_systems; } What should the ????? be? If it was an array, it would be @_; if it was a scalar, it would be my ($scalar) = @_, $_[0], or shift; How about with a hash? Thank you in advance! -- Leonid Grinberg [EMAIL PROTECTED] http://www.lgrinberg.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>