First of all thank you all for response, Perl wisdom shall be with you :P
Solution was to add: $line =~ s/\r//g;
In response to answers:
1. Isn't chomp $line; chomping this line?
2. I know that the proper way is to use strict and warnings - thanks for remaining me I need to get use to use it (sounds funny).
3. I tend to keep things simple in meaning of understanding from "just look" approach this is why I am not using any library's like LWP::UserAgent etc. if its not making me writing faster and can be replaced with more simple code in my opinion.
In reply to Re: persistent new line
by enkibian
in thread persistent new line
by enkibian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |