>
>> 
> When you do:
> 
>   open my($foo), $path;
> 
> Perl is expecting a typeglob.  If you give it an undefined value, it
> autovivifies the typeglob reference, so *$foo is the 
> filehandle.  However,
> references to filehandles are accepted wherever a filehandle 
> is, so you
> can just use $foo and get away with it.

Jeff,
This is interesting stuff. When would one use this as opposed to a regulare
file handle. In the above example is $foo undefined before this statement. 
Sorry to bother, but this is cool stuff and just want to understand it more.
Thanks
Jim


> 
> -- 
> Jeff "japhy" Pinyan      [EMAIL PROTECTED]      
> http://www.pobox.com/~japhy/
> RPI Acacia brother #734   http://www.perlmonks.org/   
http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to