Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Local for lexicals (KISS)

by tye (Sage)
on Aug 10, 2009 at 21:10 UTC ( [id://787411]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    sub Tie::TIESCALAR { return bless \$_[1] => $_[0] }
    sub Tie::FETCH { return "${$_[0]} is still tied at line " . (caller())
    +[2] }
    sub Tie::STORE { ( ${$_[0]} = $_[1] ) =~ s/ is still tied at line \d+$
    +// }
    
  2. or download this
    1 is still tied at line 7
    2 is still tied at line 10
    1 is still tied at line 12
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found