in reply to How do I change the code to get percent match and matched words between two texts?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I change the code to get percent match and matched words between two texts?
by supriyoch_2008 (Monk) on Sep 28, 2012 at 13:28 UTC |