Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Context propagation into subs and evals

by LanX (Canon)
on Feb 20, 2012 at 13:23 UTC ( #955070=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # --------------------
    #  force context
    ...
    
    VOID { no_implicit_returns(1) };
    VOID { no_implicit_returns(0) };
    
  2. or download this
    SCALAR:    is scalar
    LIST:    is list
    ...
    LIST:    no_implicit_returns(0)    is void
    VOID:    no_implicit_returns(1)    is void
    VOID:    no_implicit_returns(0)    is void
    
  3. or download this
    # --------------------
    # eval
    ...
    LIST { eval "print 'eval '; return tst_context(); 'never executed'" };
    
    #-> LIST:    eval is list
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://955070]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

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

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls