in reply to Search replace with a block
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search replace with a block
by santoshrao99 (Initiate) on May 12, 2016 at 02:20 UTC | |
by hippo (Archbishop) on May 12, 2016 at 09:50 UTC |