open (FH, "logfile") || die "Cannot open file"; while ($line = <FH>) { my ($pid, $cfile) = ($line =~ /cm:(\d+)\s+([^(]*)/); print "$pid $cfile\n"; }
In reply to Re: searching for string & number
by brsaravan
in thread searching for string & number..
by jaggu_bg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |