Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: need help to create array dynamically

by vkp (Novice)
on Jan 23, 2013 at 19:21 UTC ( #1015002=note: print w/ replies, xml ) Need Help??


in reply to Re: need help to create array dynamically
in thread need help to create array dynamically

I have no problem with pattern matching. and can u please elaborate where to use split in this case


Comment on Re^2: need help to create array dynamically
Re^2: need help to create array dynamically
by aitap (Deacon) on Jan 23, 2013 at 19:36 UTC
    Well, split your example by \n. You may also want to play with $/ to split a sequence of these examples from a file to smaller parts to be splitted by \n. Or you may read your file by for lines if you check the value of the $. variable.
    Sorry if my advice was wrong.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-15 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (146 votes), past polls