in reply to Re: Print Current Program Source Code
in thread Print Current Program Source Code

But that only prints part of the source. :)


DWIM is Perl's answer to Gödel
  • Comment on Re^2: Print Current Program Source Code

Replies are listed 'Best First'.
Re^3: Print Current Program Source Code
by davidrw (Prior) on Aug 28, 2006 at 03:02 UTC
    well, yeah :) .. well, prints the enitre thing between the 'use Acme::Echo' statement and the end or a 'no use Acme::Echo' .. which could be handy .. and could turn on,off,on,off as desired..

    And in lines mode you'll lose some whitespace ... though it provided a challenging Filter::Simple and PPI task -- you can see i had trouble recursing into compound statements .. it's on my project list to revist ;)