Re: perl deparse question.




it_says_BALLS_on_your_forehead wrote:
ewaguespack@xxxxxxxxx wrote:
What does the -p do in the following line:

perl -MO=Deparse,-p

also, is there a one liner that will run deparse, and tidy on a file at
the same time? or is that stupid?

preservation of comments would be nice but isn't critical.

this is not a Perl solution, but you could always create an alias in
your .profile or .<shell>rc file for running deparse and tidy.

disregard this; i think you are asking something different. you could
direct the output of the deparse to a file, and use that file as the
input for your perltidy call.

.



Relevant Pages

  • Re: print statement creates key in hash with reference to empty array??
    ... >> Abigail: ... I don't know why the do-block is needed. ... > what perl actually compiles. ... > Deparse can't very well suppress them either, ...
    (comp.lang.perl.misc)
  • Re: perl deparse question.
    ... (If you're not aware, the O module is a frontend to the compiler backends under B::*, and deparse is a backend ... If your tidy program can run as a filter, you could run it as a filter like: ... Alternately, if your tidy program can't be made to run as a filter, you could write a shell script (or even a Perl script) that saves STDIN to a temporary file, runs the tidy program, then reads the temporary file to STDOUT. ...
    (comp.lang.perl.misc)
  • perl deparse question.
    ... perl -MO=Deparse,-p ... also, is there a one liner that will run deparse, and tidy on a file at ...
    (comp.lang.perl.misc)
  • Re: Sed question
    ... anyway, this is one for giiorgos, or another perl wiz. ... You can also use more complicated tests in the range operator: ... -e syntax OK ... Deparse with all the parens in and leave off the,-p argument: ...
    (freebsd-questions)
  • Re: perl deparse question.
    ... perl -MO=Deparse,-p ... or is that stupid? ... your .profile or .rc file for running deparse and tidy. ...
    (comp.lang.perl.misc)