Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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"; }


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://533660]
[Eily]: what error? I see no issue :P
LanX and: = harder to reproduce. ..
[LanX]: sorry, i didn't break math yet, but it's top priority on my todo list
[choroba]: does your list start with number 5?
[LanX]: -i
LanX it's an imaginary list ...
LanX ... reflecting root problems
choroba uses real lists so he can easily insert as many items in between as needed

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2018-03-20 10:24 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.