develooper Front page | perl.beginners | Postings from January 2002

Re: Standard FileHandles for STDIN, STDOUT, STDERR

Thread Previous
Jonathan E. Paton
January 30, 2002 07:42
Re: Standard FileHandles for STDIN, STDOUT, STDERR
Message ID:
> When using FileHandles as the object-oriented wrapper for
> file handles, are there predefined handles which can be
> used to get the standard input, standard or standard
> error files?

You mean like STDIN, STDOUT and STDERR filehandles?  I
can't see many good reasons for wrapping these.  E.g.

print STDOUT "Hello world!";
print STDERR "Aborted mission";
$line = <STDIN>;

It should be in the FileHandle documentation on how to
convert these.  Try:

perldoc FileHandle

* sorry I don't use this particular module.  ;)

Jonathan Paton

Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About