This is an interesting technique. I have a couple of questions though.
in reply to Re: Possibly silly perl memory allocation question, duplicating scalars
in thread Possibly silly perl memory allocation question, duplicating scalars
I'm not clear what the effect of the statement <STDIN> is after printf 'Check'? It waits for input but doesn't assign the input to anything. The docs don't talk about using <> without an assignment (except in a conditional). Would this be considered a void or boolean context? Your output shows some process info on the same line as check. Is that a side effect? Is that result OS specific? I get nothing back on my system (WinXP w/Activstate 5.6.1)?
Is the NULL value at the end of $bigScalar necessary as a perl internal or are you using it as an end of file marker for program control?
Just curious. Thanks for an interesting half hour.
use strict; use warnings; use diagnostics;