Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Getiing keys or values of a file based hash

by zubenel0 (Sexton)
on Feb 27, 2020 at 18:51 UTC ( [id://11113509]=note: print w/replies, xml ) Need Help??


in reply to Getiing keys or values of a file based hash

To add to Fletch answer I have ran your code and noticed an error message that array @keys is not declared and you can do this with something as "my @keys;". You could delete the last while loop and save the keys in array @keys. And then cycle through the array like this:
foreach my $key ( @keys) { print $key,"\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found