Very cool!


Ok, well you think that might have helped to state in the first place, especially when posting to a beginners list?

Sorry I didn't mean to offend anyone, I felt it was irrelevant to the question. (IE - How do I vacuum my car instead of How would I vacuum a blue car?)


I simply was trying to figure out the best way to undef/close/other wise destroy each ref in a list of refs depending on the type of reference. I figured the way I was doing it didn't matter because either way all I want to do is:

undef ${$_} if ref($_) eq 'SCALAR';
I can do the above for SCALAR, ARRAY, HASH
but the question is what do I do if it's one of these:
 IO, GLOB, or CODE

1) Are there any other ref() type's I am missing?
2) If the reference is to an open file handle (\*FH):
a) it will ref() as a GLOB correct (or IO)?
b) Will it be closed if I handle it like any other GLOB or do I need to somehow check if its an open filehandle and close it?


I could live without it but itd be a handy cleanup function and now I'm really interested in figuring it out if for nothing else but learning experience...

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to