If I understand your problem correctly:
#!/usr/bin/perl # https://perlmonks.org/?node_id=1229524 use strict; use warnings; my @rand = grep $_ < 0, map 20 - int rand 30, 1 .. rand 20; print "@rand\n";
In reply to Re: Deleting certein elements from an array
by tybalt89
in thread Deleting certein elements from an array
by Eso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |