my $line = "3434 34456... 321ms:543ms:45ms"; if ( $line =~ m/(\d+)\D+(\d+)\D+(\d+)\D+$/ ) { print( "$1,$2,$3\n" ); }
In reply to Re: How do i extract 3 variables from each line in a file, and print them to a new file
by monarch
in thread How do i extract 3 variables from each line in a file, and print them to a new file
by my_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |