in reply to Re: "chomp" not working
in thread "chomp" not working
$var is taking input from an HTML text area. It goes something like this:
a,b,c,d e,f,g,h i,j,k,l
There is a carriage return at the end of each line. @arr1 before the chomp should like like above when printed out. However, I would expect that after the chomp that @arr1 would print like this:
a,b,c,d e,f,g,h i,j,k,lBut it doesn't, it prints like the first example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "chomp" not working
by JavaFan (Canon) on May 02, 2012 at 23:45 UTC | |
|
Re^3: "chomp" not working
by AnomalousMonk (Archbishop) on May 02, 2012 at 23:57 UTC |