in reply to Using currently selected filehandle
I'm not sure why you're doing this. print can already print to a filehandle:
print "Hello, world!\n"; select(STDERR); print "To STDERR\n"; select(STDOUT); print STDERR "Also on STDERR\n";
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using currently selected filehandle
by sgifford (Prior) on Jun 23, 2003 at 18:20 UTC | |
by particle (Vicar) on Jun 23, 2003 at 18:23 UTC |