On 4/24/00 10:06 AM, Randal L. Schwartz wrote:
>> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes:
>>
>> So do I have to use gensym(), or not?
>
> As long as you are aware of the package in which the symbol ends up, I
> can't see how it'd matter. And nobody uses string indirect
> filehandles
On Mon, 24 Apr 2000, Matt Sergeant wrote:
> Is it necessary to use gensym() in a PerlHandler() - it doesn't seem
> necessary to me. The book says "Ordinary bareword filehandles are prone to
> namespace clashes". Is that the case for a perl module? I don't think
> so.
no, you don't have to use g
Ken Williams writes:
> Huh? 3-arg open? I haven't seen this in the various writeups of
> new 5.6.0 features, and the docs at
> http://www.perl.com/CPAN-local/doc/ are still stuck on 5.005_02. My
> curiosity is piqued!
Here are the examples from the open entry in the perlfunc manpage.
open(D
[EMAIL PROTECTED] (Nathan Torkington) wrote:
>
>When you have 5.6.0, it's even easier:
>
> my $fh;
> open($fh, "< foobar") or die;
> # $fh autovivified to a filehandle
>
>Whee! You can even use the 3-arg open for maximum delight.
Huh? 3-arg open? I haven't seen this in the various writeups
Matt Sergeant writes:
> Nope, but often I do use the TomC "my $fh = do { local *FH; };" method,
> because I hate those ugly HANDLE capital letters everywhere - they use up
> more bytes than lower case ones... ;-)
When you have 5.6.0, it's even easier:
my $fh;
open($fh, "< foobar") or die;
On 24 Apr 2000, (Randal L. Schwartz) wrote:
> > "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes:
>
> Matt> So do I have to use gensym(), or not?
>
> As long as you are aware of the package in which the symbol ends up, I
> can't see how it'd matter. And nobody uses string indirect
> file
> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes:
Matt> So do I have to use gensym(), or not?
As long as you are aware of the package in which the symbol ends up, I
can't see how it'd matter. And nobody uses string indirect
filehandles ($x = 'FH'; print $x 'hello') these days, we'd hope