Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Math with Perl !!!

Status
Not open for further replies.

Graziella

Programmer
Jul 8, 2004
38
AT

Hi,

Code:
$f-measure  = (2 * $recall * $precision) / ($recall + $precision);

gives me the following error message:
Can't modify substraction (-) in scalar assignment at line (the one above) near ");"

This is insane: why doens;t this work ?!

Grazia
 
it's interpreting is as $f minus measure. Try using $f_measure (with an underscore) instead.
 
Thank you,

How silly on my part not to see that !
I guess it is time for a break.

Grazia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top