in reply to Re: Unix \n vs. DOS \n
in thread Unix \n vs. DOS \n

chomp returns the number of characters removed. It removes whatever's in $/, so he can just check that.

Update: Yes, $/, as jlp pointed out.