Chuck
[EMAIL PROTECTED] wrote:
Sure, just use this without an open or close statement...
print VOID 'test';
I'm not exactly sure how Perl handles this, but since there is no filehandle called VOID is just goes away.
I wouldn't leave this in there when it goes into production, but it shouldn't cause any problems during testing.
Rob
-----Original Message----- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:24 PM To: [EMAIL PROTECTED] Subject: FILEHANDLE to print to nothing
Howdy,
I am benchmarking some stuff that does multiple print staements.
What I'd like to do is print to a file handel so ethat the stuff I'm printing doesn't go to the screen.
Ie instead of print "stuff"; print BITBUCKET "stuff";
That way the output of the benchmark test won't be screwy on the terminal or cause 500 errors if someone runs this test before an html header gets printed.
Any ideas of how to create a filehandle to the void?
open(VOID,''); print VOID 'test'; close VOID;
TIA
Dan
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]