in reply to Re: Read from file to two arrays.
in thread Read from file to two arrays.

my ( $val1, $val2 ) = m/\A # beginning of line (\d+) # some numbers (capture) \+ # the plus sign \d+ # more numbers (don't capture) \, # the comma (escaped) ([0-9\.]+) # the second number \z # end of line /smx;
Why escape the comma? It isn't special in a regex.

Anno