brx has asked for the wisdom of the Perl Monks concerning the following question:

(Warning: gonzo-English following)
I recently discovered the possibilities of B::Deparse (perl -MO=Deparse). Is it possible to obtain the full code when the program to deparse contain a switch in shebang line, includinf implicit statements ?
It will be useful with golfer's programs like this one (hole 'cantor') :
#!perl -la055 $/.=$".$/,$"x=3for 1..pop;print$/
Lars Mathiesen(40.16) and Juho Snellman(40.16) made a very pretty double-play with $/ (and use of 'a' as separator), isn't it ? It would be great if '-MO=Deparse' could give something like :
$\=$/; #here something for '-a' ? $/=chr(055); ...

Replies are listed 'Best First'.
Re: Deparse the switch
by brx (Pilgrim) on May 24, 2002 at 09:57 UTC
    Here is the translation of the answer of Rafael Garcia-Suarez on mailing-list 'paris-pm-list@pm.org' :
    Deparse module included in version 5.6.1 cannot do that.
    Deparse of version 5.8.0 will understand switches -i, -l, -w and -0 (but probably only with perl5.8.0 interpreter).