Also I not sure why but the match operator does work if I [slurp the whole file into a scalar]
Your example with the tied file loops over each line at a time. One line will never match both the start and the end of a Location block because they are on different lines. Conversely, when you slurp the whole file into a scalar, then it can match.
In reply to Re: Search replace with a block
by hippo
in thread Search replace with a block
by santoshrao99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |