in reply to A Strange print() predicament.
The select statement will change the default filehandle for all manner of things, including $| and print. It also means that if a called module does something like:$oldFH = select(NOTHING); do "filename.txt"; print "Won't Print\n"; select($oldFH); print "Will Print\n";
... then it will print. However I'd be surprised if any module actually does this. It also gives you an 'out' if you want to force something to print while you have the select redirected.print STDOUT "This will print";
|
---|