Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: is filehandler used ?

by Kanji (Parson)
on Mar 01, 2006 at 14:53 UTC ( #533660=note: print w/replies, xml ) Need Help??


in reply to Re: is filehandler used ?
in thread is filehandler used ?

if (defined fileno(OUT)) { print OUT "bla bla\n"; }

    --k.


Replies are listed 'Best First'.
Re^3: is filehandler used ?
by beachbum (Beadle) on Mar 01, 2006 at 14:59 UTC
    any idea of the diff between yours and mine? I've always used *HANDLE:
    use strict; use warnings; open(OUT, ">test.txt") or die "Can't open file to write, $!."; if(defined fileno *OUT){ print "File handle is valid."; }else{ print "Nope."; } close OUT;
      No diff. \*HANDLE also works.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://533660]
help
Chatterbox?
[Copacetic]: I'm a new user. If I select "submit" for a new question it goes to a "Permission Denied" page. Is there any way I can find out why?
[toolic]: Did you try more than once?
[choroba]: any URLs in the question?
[Copacetic]: I tried last night, and also this afternoon. I did include a link to CPAN originally, but I tried without it both times.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-05-26 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?