in reply to Print Current Program Source Code
Or, here's another way. First, define a module:/usr/bin/perl $@ cat $1
Then put that in your code:package foo; use Filter::Simple; FILTER { $_ .= "\n;print qq{\n===SOURCE CODE===\n$_};"; }; 1;
i think i might toss this into an Acme module later today, assuming there isn't one already..use foo; use strict; use warnings; print "hello world";
|
|---|