... local $/ = ""; ... will cause the entire file to be slurped ...
From perldoc -v "$/" (see also perlvar):
The idiomatic Perl statement would be something likeHANDLE->input_record_separator( EXPR ) $INPUT_RECORD_SEPARATOR $RS $/ The input record separator ... treating empty lines as a terminator if set to the null string + ... You may set it to ... "undef" to read through the end of file. ...
Give a man a fish: <%-(-(-(-<
In reply to Re^2: how to extract multiple pattern into array
by AnomalousMonk
in thread how to extract multiple pattern into array
by herman4016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |