Not quite, lidden, as yours (modified solely to use __DATA__ rather than a file, prints the matching string (not sought by OP), as well as the line thereafter.
perl 843893.pl XX XXXX 3333 ii XXXX asdfddd
Testing pays off.
Update: See moritz' diagnosis and Rx, above.
In reply to Re^2: how to next line after the pattern in perl
by ww
in thread how to next line after the pattern in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |