http://www.perlmonks.org?node_id=1014990


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.