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

Re: Mapping an array to a string

by olus (Curate)
on Jan 08, 2008 at 14:09 UTC ( [id://661089]=note: print w/replies, xml ) Need Help??


in reply to Mapping an array to a string

If I understood correctly
use strict; use warnings; my @array=(1,2,3); my %hash = (); $hash{'string'} = \@array; print $hash{'string'}[0]; print $hash{'string'}[1]; print $hash{'string'}[2];

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found