Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

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


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

It is my understanding that Deparse sometimes does this.   Your source-code is turned into an internal data structure, as discussed ad nauseum in perlguts, and this data structure ultimately determines what the interpreter does.   It is no longer a direct representation of the original source-code, but rather a reflection of what the interpreter is actually going to do now.   When you “de-parse” this back to a source-code form, the output reflects this internal data structure its “execution plan” for this particular script.   The output might not be identical, but it should be functionally equivalent.

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

Replies are listed 'Best First'.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

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

    No recent polls found

    Notices?