Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: [OT]: This does not look like start end (grep vice for)

by AnomalousMonk (Archbishop)
on Apr 10, 2018 at 20:02 UTC ( [id://1212651]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    grep {
        croak "This doesn't look like start-end\n" unless /(.*)-(.*)/;
        push @a, $1;
        push @b, $2;
    } @cidr;
    
  2. or download this
    for (@cidr) {
        croak "This doesn't look like start-end\n" unless /(.*)-(.*)/;
        push @a, $1;
        push @b, $2;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found