in reply to Re^2: Etxraction of numbers in an array
in thread Extraction of numbers in an string

I'd do it this way:

#! perl -sw use strict; my $string = "<1,2>:<5,7>:<3,0>"; my @x = $string =~ m[<(\d+),(\d+)>]g; print "Extraction = @x\n"; print "1st element = $x[0]"; __END__ c:\test>junk Extraction = 1 2 5 7 3 0 1st element = 1

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.