Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to Print Return Data from Subroutine

by logie17 (Friar)
on Aug 24, 2008 at 05:26 UTC ( #706495=note: print w/replies, xml ) Need Help??


in reply to How to Print Return Data from Subroutine

You're returning an anonymous hash. So you could just use Data::Dumper to get a list of your results.
use Data::Dumper my $hash = parser(); print Dumper($hash);
If you want to print a particular key in the hash you'll need to use this syntax:
print $hash->{'key'};
Thanks,
s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-08-09 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?