You are reading the file a line at a time. So when you process the TITLE line, the data in $_ only contains the line that begins with TITLE. So that is all that ends up in $title. The rest of the TITLE data is processed on the next iteration of the loop (and, probably ends up as the first element in @se).
There are a couple of ways to solve this:
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: doubt in storing a data of 2 lines in an array.
by davorg
in thread doubt in storing a data of 2 lines in an array.
by heidi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |