Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: How do I select first string of a two dimensional array to compare to other values?

by 2teez (Vicar)
on Aug 31, 2015 at 06:25 UTC ( #1140502=note: print w/replies, xml ) Need Help??


in reply to Re: How do I select first string of a two dimensional array to compare to other values?
in thread How do I select first string of a two dimensional array to compare to other values?

hi james28909,
if split operator can take a regex, why not just:

use strict; use warnings; print split /,.+/, <DATA>; __DATA__ 123,456 234,567 345,456
Just a flash of thought! :)

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re^2: How do I select first string of a two dimensional array to compare to other values?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-04-20 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?