in reply to Re: Re: Nearest Neighbour Analysis subroutine
in thread Nearest Neighbour Analysis subroutine
You're passing one thing, all the time. That's always odd (and odd!). Remove the \ in front of @test.@test=qw(1 2 3 4 5 6); testthearray1(\@test); sub testthearray1{ (@_ % 2) ? print "uneven\n" : print "even\n"; }
-- Randal L. Schwartz, Perl hacker
|
|---|