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

Re^2: printing hash values, (don't need the keys)

by GrandFather (Sage)
on Jul 06, 2006 at 22:32 UTC ( #559685=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $data_file = "ActiveItems2.txt";
    open(DAT, $data_file) || die("Could not open file: $!");
    ...
    print for sort keys %seen;
    
    close(DAT);
    
  2. or download this
    @seen{<DAT>} = (); # Hash slice assignement
    print for sort keys %seen;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-04 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls