Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found