Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I'm writing it in POD... and I can't for the life of me find the "run this code in perl" short cut in any Word Processor I've tried.

    Since you're writing it in POD, use Test::Inline.

    Syntax check your code.

               =for example begin

               use LWP::Simple;
               getprint "http://www.goats.com";

               =for example end

    And even write tests for your examples.

               =for example begin

                 my $result = 2 + 2;

               =for example end

               =for example_testing
                 is( $result, 4,         'addition works' );