Re: autovivification of typeglobs

2001-09-20 Thread Atul_Khot
[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: autovivification of typeglobs On Thu, Sep 20, 2001 at 11:37:50AM -0500, [EMAIL PROTECTED] wrote: > I think you lost the context. I was afraid of that. > My question is not whether %$$self and self are same ( They

Re: autovivification of typeglobs

2001-09-20 Thread Michael Fowler
On Thu, Sep 20, 2001 at 11:37:50AM -0500, [EMAIL PROTECTED] wrote: > I think you lost the context. I was afraid of that. > My question is not whether %$$self and self are same ( They are not and > %$this was never a point of debate ). I wanted just the explanation of > using %$$self in the ***

Re: autovivification of typeglobs

2001-09-20 Thread Atul_Khot
L PROTECTED] Subject: Re: autovivification of typeglobs On Wed, Sep 19, 2001 at 12:07:16PM -0500, [EMAIL PROTECTED] wrote: > Thanks for the answer but what I want to know is the meaning of %$$self. I > understand autovivification ( data structures spring into existence ). > Howev

Re: autovivification of typeglobs

2001-09-19 Thread Michael Fowler
On Wed, Sep 19, 2001 at 12:07:16PM -0500, [EMAIL PROTECTED] wrote: > Thanks for the answer but what I want to know is the meaning of %$$self. I > understand autovivification ( data structures spring into existence ). > However, the part I don't understand is %$$self. Shouldn't it be %$self? I h

Re: autovivification of typeglobs

2001-09-19 Thread Atul_Khot
d to japhy To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: autovivification of typeglobs On Sep 18, [EMAIL PROTECTED] said: >open my $self, $from, @_ or croak "can't open $from@_:$!"; >" ... the my $self furnishes undefined sc

RE: autovivification of typeglobs

2001-09-19 Thread Brett W. McCoy
On Wed, 19 Sep 2001, Kipp, James wrote: > 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. You would use a fileha

RE: autovivification of typeglobs

2001-09-19 Thread Kipp, James
> >> > 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 $f

Re: autovivification of typeglobs

2001-09-18 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 18, [EMAIL PROTECTED] said: >open my $self, $from, @_ or croak "can't open $from@_:$!"; >" ... the my $self furnishes undefined scalar to open, which knows to >autovivify it into a typeglob. " and further mentions autovivifying a When you use an undefined value as a reference, Per

autovivification of typeglobs

2001-09-18 Thread Atul_Khot
Gurus, The Camel ( 3rd Ed. ), says, on page 385-386 sub TIEHANDLE { open my $self, $from, @_ or croak "can't open $from@_:$!"; } and then, " ... the my $self furnishes undefined scalar to open, which knows to autovivify it into a typeglob. " and further mentions autovivify