Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: need help to create array dynamically

by aitap (Deacon)
on Jan 23, 2013 at 19:03 UTC ( #1014990=note: print w/replies, xml ) Need Help??


in reply to need help to create array dynamically

Start with split and read perlretut to know about pattern matching.
Sorry if my advice was wrong.
  • Comment on Re: need help to create array dynamically

Replies are listed 'Best First'.
Re^2: need help to create array dynamically
by vkp (Novice) on Jan 23, 2013 at 19:21 UTC

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

      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://1014990]
help
Chatterbox?
[Corion]: Yay! As I had to reset my phone again, I now also back up my SMS automatically. Highly conveniently, there is a program to back up my SMS to my IMAP server as mails ;)
[1nickt]: Corion this is an android phone? If so, are you encountering problems with recent upgrades? Lately my phone dies suddenly quite often, seemingly coredumps caused by interaction of two actions, eg phone playing a sound and user swiping simultaneously :-/

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-11-18 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?