Hi Steve

my $s = sub { 1; };
my $x = sum($a->slice("0:0,1"));
$s->($x);

It isn't clear to me what you intend to do here - $s is reference to a subroutine so -> cannot act on this (which is why you get the error). What is the intention with the code?

                                Cheers,
                                        Jarle.


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to