Why escape the comma? It isn't special in a regex.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;
Anno
In reply to Re^2: Read from file to two arrays.
by Anno
in thread Read from file to two arrays.
by Offshore_Worker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |