Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Integer regex, different results in windows and mac - I just need regex help

by dave_the_m (Prior)
on Oct 19, 2017 at 06:45 UTC ( #1201654=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201654]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-06-18 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (110 votes). Check out past polls.

    Notices?