Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Deleting certein elements from an array

by tybalt89 (Monsignor)
on Feb 07, 2019 at 13:51 UTC ( [id://1229550]=note: print w/replies, xml ) Need Help??


in reply to Deleting certein elements from an array

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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found