Keep It Simple, Stupid | |
PerlMonks |
How Tied/Tight is it ?by ChOas (Curate) |
on May 08, 2001 at 14:17 UTC ( [id://78786]=perlquestion: print w/replies, xml ) | Need Help?? |
ChOas has asked for the wisdom of the Perl Monks concerning the following question:
Hello all, I`m experimenting with tie, and packages, and I have a question... I think the question is about how tight a variable is tied (lexical tie, not the function) to the scope of a for loop... ...God, I hope this will make sense to you all...
This is the package 'Spy': === === And this is the test code: === === And here is the output:
Now... I CAN imagine that before the `for` loop `something` is done that localizes $Var2 to the loop (as seen in the output)... Two questions though:
assigning it to another monitored variable (like here $Var1) ? I really hope all this made sense to you guys.... GreetZ!,
print "profeth still\n" if /bird|devil/;
Back to
Seekers of Perl Wisdom
|
|