There's more than one way to do things | |
PerlMonks |
Re^3: plotting roc curve using roc packageby Laurent_R (Canon) |
on Aug 02, 2015 at 08:20 UTC ( [id://1137156]=note: print w/replies, xml ) | Need Help?? |
Hum, yes, GrandFather, you're right, I wouldn't write such code, but here I only wanted to point to the obvious error in the code shown, i.e. that the first split was useless (because the result is never used) and that the second split did not split anything but probably only removed trailing spaces and newline character from $_. But you're right that the OP should use strictures and warnings, should not use the $a and $b special variables, should use meaningful variable names, and so on.
In Section
Seekers of Perl Wisdom
|
|