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


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

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.