[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
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 ***
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
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
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
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
>
>>
> 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
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
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