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

RE: Testing for filehandles

Thread Previous | Thread Next
From:
eric-perl
Date:
March 27, 2002 16:21
Subject:
RE: Testing for filehandles
Message ID:
Pine.LNX.4.33.0203271511230.20427-100000@lucy
On Wed, 27 Mar 2002, Bob Showalter wrote:
> You can pass a filehandle glob to IO::Handle::opened():

Thanks, Bob! After reading the IO::Handle man page, I decided to distill 
this approach a bit further:

  print F if fileno(F);

-- 
Eric P.
Los Gatos, CA


Thread Previous | Thread Next


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