I think this is your first post, the question is not clear. If your question is clear, it is very easy to answer your question correctly.
Also before posting, you should try something. If you post the code what you tried, others will help you.
If i understood your question correctly,
undef $/; $a = <DATA>; $search = 56; if ($a =~ /(\w+)\n$search/) { print "matched: $1"; } __DATA__ NP 32 U 56
Prasad
In reply to Re: regex help!
by prasadbabu
in thread regex help!
by igotlongestname
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |