Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Determining indirect filehandles

by Masem (Monsignor)
on Jan 23, 2002 at 23:27 UTC ( #140990=note: print w/replies, xml ) Need Help??


in reply to Re: Determining indirect filehandles
in thread Determining indirect filehandles

I would think most good programmers would not have a problem with running strict at all times, but in case they don't, the latter case can be easily resolved using:
ref( $fh ) && defined eval { fileno $fh }
(At least, the quick spot checks that I've done indicate this works as expected for different indirect filehandle types).

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140990]
help
Chatterbox?
[Tanktalus]: also, would it not have been a simpler patch to try to get the XS code compiled in C99+ mode for all the comments? :)
[Tux]: C99 is not supported on HP-UX before 11.31
[Tux]: at least not reliable. And perl itself requires C89 (but probes if it can safely use some C99 features)
Eily takes a peek in the last hour of CB to discover that LanX woke up is boobs with some Queen :P
[Eily]: s/\K\bis\b/h/
[Tux]: you left the space in

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-09-20 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?