Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Arrays as Hash Values

by c (Hermit)
on Aug 16, 2001 at 03:11 UTC ( [id://105234]=note: print w/replies, xml ) Need Help??


in reply to Re: Arrays as Hash Values
in thread Arrays as Hash Values

Yes, I hear/see what you are saying, however, what if my array elements need to be interpolated:

my %hash = ( key1 => ["one thing","one $thing","$another"], key2 => ["and the list","keeps $going"] );

When I go down this road, I am seeing errors. Should I be? or is this syntax correct? Apologies for not getting into this prior.

humbly -c

Replies are listed 'Best First'.
Re: Re: Re: Arrays as Hash Values
by dragonchild (Archbishop) on Aug 16, 2001 at 05:07 UTC
    As far as I can tell, that syntax looks to be just fine. What I would do at this point is to post an actual running script (doesn't have to be long) and its output, including errors. That way, we can help you more.

    ------
    /me wants to be the brightest bulb in the chandelier!

    Vote paco for President!

Re: Re: Re: Arrays as Hash Values
by clearcache (Beadle) on Aug 16, 2001 at 10:51 UTC
    try enclosing key1 and key2 in quotes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found