Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Detect a localized variable

by Perlbotics (Archbishop)
on Nov 19, 2011 at 14:25 UTC ( [id://938976]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       with_cache_cleared_do { some_sub_requesting_the_data; };
    
  2. or download this
    use strict;
    use warnings;
    ...
    my @x = with_cache_cleared_do {  return ( 'one', refresh_requested() )
    +; };
    ok( ( $x[0] eq 'one' and $x[1] == 1 ) , 'result in list context' );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found