N
Neil Shadrach
[ Apologies for reposting this - my local news server has been unwell
and 1 day on it hasn't appeared in Google and I've seen no reply so
I'm assuming it didn't get out to the wider world ]
If both
my $m=@{$o->{lst}}[0];
and
my $m=$t->[0];
successfully set $m to a reference to a method such that
$o->$m( 20 );
calls the method for the instance $o
how could it be called without creating the intermediate $m ?
Nothing depends on this - I'm just curious as to how a single
statement would be written.
Apologies if the terminology isn't correct
Thanks in advance
and 1 day on it hasn't appeared in Google and I've seen no reply so
I'm assuming it didn't get out to the wider world ]
If both
my $m=@{$o->{lst}}[0];
and
my $m=$t->[0];
successfully set $m to a reference to a method such that
$o->$m( 20 );
calls the method for the instance $o
how could it be called without creating the intermediate $m ?
Nothing depends on this - I'm just curious as to how a single
statement would be written.
Apologies if the terminology isn't correct
Thanks in advance