in reply to Re: Stupidest Prime Number detector ever!!
in thread Stupidest Prime Number detector ever!!
Thank you for such a detailed post, but, the only way I have used map is to gather the output in another array, for example: my @array (1..1000); my @odds = map { $_ % 2 != 0 } @array; .So I am taking a bit of a time getting used to the way you are doing it in the sample code, but that's my bad. Thanks again
.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Stupidest Prime Number detector ever!!
by johngg (Canon) on Jun 23, 2021 at 21:37 UTC | |
by Anonymous Monk on Jun 23, 2021 at 22:06 UTC |