D
Dave Saville
Just fell into a nice bear trap.
open FOO, '>', $bar or die "$!";
while ( <some file> )
{
print FOO;
}
I was changing my scripts to using $HANDLE - AIUI this is s "Good
Thing(TM)" although I am not sure why
So the above print turned into "print $FOO;" - which of course does
not default to printing $_. It prints a GLOB to STDOUT.
open FOO, '>', $bar or die "$!";
while ( <some file> )
{
print FOO;
}
I was changing my scripts to using $HANDLE - AIUI this is s "Good
Thing(TM)" although I am not sure why
So the above print turned into "print $FOO;" - which of course does
not default to printing $_. It prints a GLOB to STDOUT.