Hi!
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:

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.>.
question: How can I match the N<> (footnote) ? My code does not work :(

In reply to matching POD footnote by anek77713

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.