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...
In reply to return more than 1 value by changma_ha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |