Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Abuse of "or next" in expressions and "next" that returns value

by sundialsvc4 (Abbot)
on Jul 19, 2018 at 01:26 UTC ( #1218798=note: print w/replies, xml ) Need Help??


in reply to Re: Abuse of "or next" in expressions and "next" that returns value
in thread Abuse of "or next" in expressions and "next" that returns value

P.S.:   The perldoc more-or-less says the same thing as I just did, as follows:

B::Deparse is a backend module for the Perl compiler that generates perl source code, based on the internal compiled structure that perl itself creates after parsing a program.   The output of B::Deparse won't be exactly the same as the original source, since perl doesn't keep track of comments or whitespace, and there isn't a one-to-one correspondence between perl's syntactical constructions and their compiled form, but it will often be close.   When you use the -p option, the output also includes parentheses even when they are not required by precedence, which can make it easy to see if perl is parsing your expressions the way you intended.

While B::Deparse goes to some lengths to try to figure out what your original program was doing, some parts of the language can still trip it up; it still fails even on some parts of Perl's own test suite. [...]

In compiler parlance, the “internal compiled structure” is not simply an AST, but the final output of the Perl compilation process, meant to drive the interpreter.   The “de-parser” has no way to know at this point what your source-code actually was.   It can only look at internal data structures and generate source-code fragments which could legitimately represent them.

  • Comment on Re^2: Abuse of "or next" in expressions and "next" that returns value

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1218798]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2019-12-12 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?