freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
my $CFref = $self->param('CFref'); my %CF = %$CFref;
works. But
my %CF = %$self->param('CFref');
Doesn't. Error:
Can't call method "param" without a package or object reference at Con +tact.pm line 25.
Can someone explain how to do this in one line not two?
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dereferencing syntax question
by BrowserUk (Patriarch) on Oct 23, 2003 at 22:36 UTC | |
by pg (Canon) on Oct 23, 2003 at 22:48 UTC | |
by Abigail-II (Bishop) on Oct 24, 2003 at 00:27 UTC | |
by freddo411 (Chaplain) on Oct 24, 2003 at 00:38 UTC | |
by hardburn (Abbot) on Oct 24, 2003 at 13:41 UTC | |
by Abigail-II (Bishop) on Oct 24, 2003 at 14:40 UTC |