Hi Steve,
also
my $x = sum($a->slice("0:0,1"));
seem a little odd as you here try to sum from 0 to 0 on the second
row...?
I guess this code has no intention other than you try to figure out how
things work?
Cheers,
Kare
On Thu, 2007-11-29 at 14:46 +0000, Jarle Brinchmann wrote:
> 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
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl