Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(Dermot) Re: hash loop print

by Dermot (Scribe)
on Oct 06, 2000 at 17:42 UTC ( #35574=note: print w/replies, xml ) Need Help??


in reply to hash loop print

#!/usr/bin/perl -w for (1 .. 10) { $numbers{$_} = $_ . "\n"; } for (1 .. 10) { print $numbers{$_}; }

Replies are listed 'Best First'.
RE: Re: hash loop print
by kelsey (Initiate) on Oct 06, 2000 at 19:26 UTC
    This time I want to do a hash referenced by an array, Would it be something like this...it is not right yet. for (1..10){ push@{$numbers{$_}}, $found10; } for (1..10) { print $numbers{$_}; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-10-24 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?