in reply to chomp it chomp it good
The chomp function works in combination with the $/ variable when reading from filehandles.
The $/ variable is the input record separator that is attached to the records you read from a filehandle and it is by default set to the newline character "\n".
The chomp function works by removing the last character from a string only if it matches the value of $/.
See Chomp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: chomp it chomp it good
by parv (Parson) on Jun 03, 2009 at 10:33 UTC |