in reply to Apply regex to entire file, not just individual lines ?
open(FILE, "$filename");
@lines = <FILE>;
close(FILE);
$content = join('', @lines);
After this, $content will be single-line and it is easy to do regexp with your existing functions.
|
|---|