Do you know where your variables are? | |
PerlMonks |
Re: Closure Confusionby kabel (Chaplain) |
on Oct 16, 2002 at 21:04 UTC ( [id://205846]=note: print w/replies, xml ) | Need Help?? |
i tried another way and confused myself somehow ;) my initial thought was that if you put the scalar value inside double quotes it immediately stringifies, thus evaluating to a string that is just printed out. this does not happen - it seems that the sub call takes the block as-is and returns a code reference. is there an explicit stringify operator for scalars? is this way feasible? my feeling says no, but i do not know it.
In Section
Seekers of Perl Wisdom
|
|