well, you're using $1 without using capture groups which moritz told you about , and which perlintro talks about ($1)
why are you using $1, maybe you want to use $_?
In reply to Re^5: How to extract certain range of text and display it?
by Anonymous Monk
in thread How to extract certain range of text and write into another file?
by annel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |