Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^6: Overridding subroutines called in private subroutines

by ikegami (Patriarch)
on Oct 08, 2008 at 01:11 UTC ( [id://715881]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Overridding subroutines called in private subroutines
in thread Overridding subroutines called in private subroutines

This is the leaking to which I was refering:
$Foo::var = 'foo!'; $Bar::var = 'bar!'; package Foo; our $var; package Bar; print("$var\n"); # foo!
$Foo::var = 'foo!'; $Bar::var = 'bar!'; { package Foo; our $var; } { package Bar; print("$var\n"); # bar! }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-29 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found