in reply to Re: Passing Indirect as Reference
in thread Passing Indirect as Reference
As far as my limited understanding of references goes, you force the $self part to be interpreted as a scalar (string), and pass a reference to that string.my $parse_it = HTML::TokeParser->new( \ ${$self->{'HTML'} } );
If I'm wrong here (correct me if not ;-), you also could do
as the quotes are not necessary, and the \ should give a reference to the resulting string.my $parse_it = HTML::TokeParser->new( \ "$self->{HTML}" );
Hope this helps,
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Passing Indirect as Reference
by chipmunk (Parson) on Jan 10, 2001 at 19:32 UTC | |
|
Re: Re: Re: Passing Indirect as Reference
by ichimunki (Priest) on Jan 10, 2001 at 18:10 UTC | |
by jeroenes (Priest) on Jan 10, 2001 at 18:29 UTC | |
by ichimunki (Priest) on Jan 10, 2001 at 18:31 UTC |