Your regular expression is probably not doing what you think it is. It matches a line that has a literal 'scor', zero or 'e's then a literal '"cool"'. You probably mean to use '.*' to match zero or more characters (except newline).
but without seeing the input you expect to match I can't be sure.if ( my $line =~ /score.*$song/ ) { ... }
In reply to Re: character recognition
by hipowls
in thread character recognition
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |