open my $fh, "<filename" or die "$!, for filename"; my $found = 0; while( <$fh> ) { my $tmp = $_; $tmp =~ s/\.//g; $found = ( $tmp =~ /xyz123abc/ ) and last; } close $fh; if ( $found ) { # etc. }
-M
Free your mind
In reply to Re: Matching strings differing by a number of periods
by Moron
in thread Matching strings differing by a number of periods
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |