Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

(Dermot) Re: hash loop print

by Dermot (Scribe)
on Oct 06, 2000 at 17:42 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-18 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found