Re: gensym()

2000-04-25 Thread John Siracusa
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

Re: gensym()

2000-04-25 Thread Doug MacEachern
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

Re: gensym()

2000-04-24 Thread Nathan Torkington
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

Re: gensym()

2000-04-24 Thread Ken Williams
[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

Re: gensym()

2000-04-24 Thread Nathan Torkington
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;

Re: gensym()

2000-04-24 Thread Matt Sergeant
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

Re: gensym()

2000-04-24 Thread Randal L. Schwartz
> "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