in reply to persistent new line
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: persistent new line
by Anonymous Monk on Feb 16, 2012 at 06:09 UTC | |
by Marshall (Canon) on Feb 16, 2012 at 23:23 UTC |