in reply to
Integer regex, different results in windows and mac - I just need regex help
You've probably got DOS line endings in your data. Try adding
$num =~ s/\s+$//;
to the top of the loop.
Dave.
Comment on
Re: Integer regex, different results in windows and mac - I just need regex help
Download
Code
In Section
Seekers of Perl Wisdom