my ($uid) = $string =~ /^UID: (\w+)/; print $fh $uid if $uid;
(where $fh is a file handle opened for writing to the other file)
In reply to Re: Extracting text from a line
by almut
in thread Extracting text from a line
by kirkbrown
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |