You need to capture the match you want:
$line =~ m/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\.csv$/g
The match in your first set of parens will be stored in $1, in the second set of parens in $2, and so on.
See perldoc perlretut.
In reply to Re: extracting data from an input file and associated errors
by chilledham
in thread extracting data from an input file and associated errors
by rakshas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |