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

Re: Standard FileHandles for STDIN, STDOUT, STDERR

Thread Previous
From:
Jonathan E. Paton
Date:
January 30, 2002 07:42
Subject:
Re: Standard FileHandles for STDIN, STDOUT, STDERR
Message ID:
20020130154203.28599.qmail@web14605.mail.yahoo.com
> 
> 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
http://uk.my.yahoo.com

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About