in reply to Re: building similarity matrix
in thread building similarity matrix

I could figure out errors of global variables but how to solve the erroe of "Scalar found where operator expected"? anyway to solve it? tx

Replies are listed 'Best First'.
Re^3: building similarity matrix
by GrandFather (Saint) on Feb 04, 2008 at 18:35 UTC

    pc88mxer has provided the answer at Re: building similarity matrix.

    You could set $Measure by:

    my $Measure = "WordNet::Similarity::" . shift;

    then do as pc88mxer suggests and create the measure object once outside the loop.


    Perl is environmentally friendly - it saves trees