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. In reply to Re: Apply regex to entire file, not just individual lines ?
by juahonen
in thread Apply regex to entire file, not just individual lines ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |