in reply to Chomp is removing the whole word instead of the newline
From the docs:
It (chomp) returns the total number of characters removed from all its arguments
So my $var = chomp ($row[1]); is not doing what you expect it to do.
Rata
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Chomp is removing the whole word instead of the newline
by slayedbylucifer (Scribe) on Jul 25, 2012 at 09:51 UTC |
In Section
Seekers of Perl Wisdom