Does this work for you?
Outputuse warnings; use strict; use feature 'say'; my $str = do { local $/; <DATA>; }; say join " " => grep { $_ if /fox/ .. /over/ } split /\n/, $str; __DATA__ the quick brown fox jumped over the unfortunate dog
In reply to Re: how to read multiple line from a file
by 2teez
in thread how to read multiple line from a file
by skyworld_chen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |