my $poem = "...."; if ($poem =~ /DOG/) { print "Before DOG: $`"; print "After DOG: $'"; }
Abigail
In reply to Re: Storing Lines before and After pattern
by Abigail-II
in thread Storing Lines before and After pattern
by Hoot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |