in reply to Re: how to extract multiple pattern into array
in thread how to extract multiple pattern into array
... 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: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to extract multiple pattern into array
by Anonymous Monk on Feb 02, 2015 at 20:27 UTC | |
by herman4016 (Acolyte) on Feb 04, 2015 at 07:25 UTC |