How can I slurp multiple lines to a variable? I have a multiple line range that I need to pull out.
Thanks for any advice!
open(F, "file"); while(<F>) { if (/StartPattern/.../StopPattern/) { # if matches, slurp all of this contents to a variable } close(F);
In reply to Slurp multiple lines to a variable by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |