Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Copying a hash element into an array as a list

by bassplayer (Monsignor)
on Mar 24, 2004 at 17:34 UTC ( #339483=note: print w/replies, xml ) Need Help??


in reply to Copying a hash element into an array as a list

Change the second line to:

my @Array=split /\s/,$Hash{"Element"};

This splits the string on spaces before sending it to the array.

bassplayer

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://339483]
help
Chatterbox?
[erix]: how does one find out how to install a program like cvsgrep
[erix]: I mean, I suppose it's just the one file so I can download that
[erix]: Makefile.PL should tell me, probably

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-06-22 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (524 votes). Check out past polls.