Think about Loose Coupling | |
PerlMonks |
Re: Working out frequency statistics with perlby pc88mxer (Vicar) |
on Jul 15, 2008 at 14:24 UTC ( [id://697724]=note: print w/replies, xml ) | Need Help?? |
In this code, I would not blindly assume the last character is a period:
It's better to use a regex to remove it: Then again, this shouldn't be necessary since you are using $fields[9] as a number. For instance, the strings "3.14" and "3.14." will evaluate to the same number.
In Section
Seekers of Perl Wisdom
|
|