in reply to Re: how to next line after the pattern in perl
in thread how to next line after the pattern in perl

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.