anek77713 has asked for the wisdom of the Perl Monks concerning the following question:
my $Npod = 'N<(.*?)>'; my $N = '<font class="footnote">'; my $n = '</font>'; open(DATA, "<file.pod"); my @file = <DATA>; s/$Npod/$N$1$n/s for @file;
file.pod:
question: How can I match the N<> (footnote) ? My code does not work :(If you have no Perl 5 installed (or if you have an old version install +ed), you can install a newer release yourself. Windows users, download Strawber +ry Perl from U<http://www.strawberryperl.com/> or ActivePerl from U<http://www.activestate.com/activeperl>. Users of other operating sys +tems with Perl 5 already installed (and a C compiler and the other development t +ools), start by installing the CPAN module C<App::perlbrew>N<See U<http://search.cpan.org/perldoc?App::perlbrew> for installation instructions.>.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching POD footnote
by LanX (Saint) on Jul 18, 2013 at 08:48 UTC | |
by tobyink (Canon) on Jul 18, 2013 at 09:02 UTC | |
by anek77713 (Acolyte) on Jul 18, 2013 at 08:53 UTC | |
by tobyink (Canon) on Jul 18, 2013 at 08:58 UTC | |
by anek77713 (Acolyte) on Jul 18, 2013 at 09:00 UTC | |
by tobyink (Canon) on Jul 18, 2013 at 09:04 UTC | |
| |
by LanX (Saint) on Jul 18, 2013 at 09:54 UTC | |
| |
|
Re: matching POD footnote
by anek77713 (Acolyte) on Jul 18, 2013 at 09:29 UTC | |
by rjt (Curate) on Jul 21, 2013 at 23:11 UTC | |
by Anonymous Monk on Jul 22, 2013 at 00:03 UTC | |
by rjt (Curate) on Jul 22, 2013 at 01:17 UTC | |
by Anonymous Monk on Jul 22, 2013 at 01:57 UTC | |
| |
|
Re: matching POD footnote
by mtmcc (Hermit) on Jul 18, 2013 at 08:22 UTC | |
by anek77713 (Acolyte) on Jul 18, 2013 at 08:27 UTC | |
by Anonymous Monk on Jul 18, 2013 at 08:38 UTC | |
by anek77713 (Acolyte) on Jul 18, 2013 at 08:45 UTC | |
by tobyink (Canon) on Jul 18, 2013 at 08:58 UTC | |
|