How can I generate an array in Perl with 100 random values, without using a loop?
I have to avoid all kind of loops, like \"for\", foreach\", while. This is my exerc
sub f { my $n = shift; if( $n == 0 ) { return @_; } else { return f( $n-1, rand, @_ ); } } my @random_array = f(100);