in reply to Automatically hyperlinking text fails with newlines
... #error checking and stuff left as an exercise. $/=undef; #slurp files. $lines=<FILE>; close(FILE); $lines =~ s/\n//g; #now do your thing.
Note that this joins lines, so if you count on newlines as whitespace, you're out of luck with this.
Cheers,
alf
|
|---|