G'day supriyoch_2008,
You get this message from Perl:
syntax error at C:\Users\DR-SUPRIYO\Desktop\match.pl line 21, near "print"
Then you write:
"But something has gone wrong in the script either in naming (assigning) the original and matching texts to variables at lines 9-10 or missing some code at line 11."
I looked at the print on line 21. It's part of this statement spanning lines 20-21:
[my $sentence,my $possible_match] print Dumper($text->matches);
I haven't looked at any other parts of your code because Perl clearly states where the problem lies.
-- Ken
In reply to Re: How do I change the code to get percent match and matched words between two texts?
by kcott
in thread How do I change the code to get percent match and matched words between two texts?
by supriyoch_2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |