in reply to matching POD footnote

This one works for me. :)

my $start_Note = 'N<'; my $N = '<font class="footnote">'; my $end_Note = '\.>'; my $n = '</font>'; open(DATA, "<file.pod"); my @file = <DATA>; s/$start_Note/$N/g for @file; s/$end_Note/$n/g for @file;

Replies are listed 'Best First'.
Re^2: matching POD footnote
by rjt (Curate) on Jul 21, 2013 at 23:11 UTC

    I sincerely hope that you would not receive full marks for such a solution. I intend no offense by that; only that you receive thorough feedback, if not from your teacher, then from us monks. To get you thinking, what happens when you run it on the following inputs:

    N<See U<http://example.com> now!> To include footnotes in this pseudo-POD, use this syntax: C<N<footnote +.>> N<<< Repeated angle brackets are allowed; see L<perlpod>. >>>

    Hint: Your solution produces what I would consider incorrect results for all three lines.

        I think you're expecting too much from this mystery course/teacher/assignment

        You misrepresent my words; I "expect" nothing. If the course/teacher/assignment falls short, I'm with Mark Twain on this one: "I have never let my schooling interfere with my education."

        This logic applies equally well after graduation: Regardless of how good or bad the spec is, write the best solution you can within the time allotted that still meets the requirements. In an academic context, you'll learn far more, and in a professional context, you'll likely receive far fewer bug reports.