note
SparkeyG
[chomp] will only remove the systems $/ ($INPUT_RECORD_SEPARATOR). In most Unix it is just \n, in DOS it's \r\n.<br>
I guess you could fix the problem by:
<code>
{
local $/ = "\r\n";
chomp ($line);
}
</code>
<i>Edited to correct typo, and again edited to correct a typo and again edited to fix a type. A sick infant does wonders to your sleep habits, and therfore your typing skils ;)</i> Note to self, do not post anything after cleaning up baby vomit. ;)
200426
200426