andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
html.entities.pl/ /
Runtime:use strict; use warnings; use HTML::Entities; print encode_entities(`cat two-lines-with-one-slash-each.txt`); __END__
Environment:$ perl html.entities.pl Unmatched [ in regex; marked by <-- HERE in m/([ <-- HERE / at (eval 1 +) line 2. while trying to turn range: "/ " into code: sub {$_[0] =~ s/([/ ])/$char2entity{$1} || num_entity($1)/ge; } at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/HTML/Ent +ities.pm line 428.
$ perl -v | head -2 This is perl, v5.8.5 built for i386-linux-thread-multi $ uname -r 2.6.9-42.0.10.EL cpan[2]> install HTML::Entities HTML::Entities is up to date (1.35).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Entities - Unmatched [ in regex
by tinita (Parson) on May 30, 2007 at 14:36 UTC | |
by blazar (Canon) on May 30, 2007 at 20:55 UTC | |
by andreas1234567 (Vicar) on May 31, 2007 at 05:30 UTC |