Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

return more than 1 value

by changma_ha (Sexton)
on Jul 29, 2010 at 06:29 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2022-10-04 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (19 votes). Check out past polls.

    Notices?