Your code never calls your subroutine, so I assume something is missing here. But in general, if you only want to print the lines that are matched by your find-and-replace regex:
if( s/^$rcid\:.*/$rcid\:$car\:$owner/g ){ print $outfile $_; }
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
In reply to Re: Data Move
by aaron_baugher
in thread Data Move
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |