Cool/useful short examples of Perl?

Gabor Szabo szabgab at gmail.com
Mon May 30 21:41:17 BST 2011


Another example you can add maybe after some further tweaking:


      #!/usr/bin/env perl
      use Dancer;

      get '/' => sub {
          "Hello World!"
      };

      dance;


      $ perl bin/app.pl &
      ...
      $ curl http://localhost:3000/
      Hello world!


>From http://perldancer.org/

Gabor
http://szabgab.com/


More information about the london.pm mailing list