sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)
Sophie ([personal profile] sophie) wrote in [site community profile] dw_dev_training 2010-08-31 11:38 pm (UTC)

Also, if you need to do this trick but don't know what the operator precedence is, you can add ",-p" after the "Deparse" in order to get Perl to print parentheses to show exactly how things get calculated.

One thing, btw - this won't work as a built-in code beautifier because you'll find that some string literals aren't kept; they're transformed to '???'. That's because it's a constant value that Perl optimised away for whatever reason. (The perldoc for B::Deparse explains more.)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting