http://qs321.pair.com?node_id=851852

changma_ha has asked for the wisdom of the Perl Monks concerning the following question:

I have a doubt regarding the return value. suppose i have a perl module in which i have define a method for hash. suppose i have a package mymodule.pm in which i have a method like

sub ahash{ my %hash=@_; foreach my $key(keys %hash){ my @ke = keys %hash; my @val = values %hash; return @ke; return @val; } }

And i am calling it like

my @list =qw (1 2 3 4 5); print addmodule::ahash(@list),"\n";

Now my question is can i retun more than 1 value when i defining the mothod ?like i have done in return @ke and return @val...