Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

return more than 1 value

by changma_ha (Sexton)
on Jul 29, 2010 at 06:29 UTC ( [id://851852]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub ahash{
        my %hash=@_;
        foreach my $key(keys %hash){
    ...
            return @val;
        }
    }
    
  2. or download this
    my @list =qw (1 2 3 4 5);
    print addmodule::ahash(@list),"\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://851852]
Approved by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found