Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by AnomalousMonk (Bishop)
on Apr 10, 2018 at 20:02 UTC ( #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
Node Status?
node history
Node Type: note [id://1212651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-11-25 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?