my $data_file = m/(\w+)/; assigns a true or false value to the variable indicating whether the regular expression matched. To save the captured value, assign the return value of m// from list context, not scalar context.
But if the desired result is to remove the newline, use chomp.
In reply to Re^2: Multiple files opened
by Anonymous Monk
in thread Multiple files opened
by kokakola613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |