in reply to Calling subroutine with a scalar
Try
my $res = new Some::Package({ foo => bar })->$sub;Or better:
my $res = Some::Package->new({ foo => bar })->$sub;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Calling subroutine with a scalar
by Rodster001 (Pilgrim) on May 06, 2015 at 18:53 UTC | |
by jeffa (Bishop) on May 06, 2015 at 18:58 UTC |
In Section
Seekers of Perl Wisdom