Created
May 18, 2012 21:33
-
-
Save genehack/2727704 to your computer and use it in GitHub Desktop.
Smallest possible Cat app that is also a quine? (after http://paste.scsys.co.uk/198326 by t0m aka @bobtfish)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use base 'Catalyst', 'MooseX::MethodAttributes::Inheritable'; | |
use File::Slurp; | |
sub dispatch { my $b = read_file(__FILE__);shift()->res->body($b) } | |
__PACKAGE__->setup; | |
__PACKAGE__->psgi_app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment