in reply to Homework question list
By the way, the simplest way to remove trailing newlines from an array is:
You could also use chop, substr, or s///, but chomp has the best combination of speed and flexibility for this task.chomp for @arr;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Homework question list
by Aragorn (Curate) on May 21, 2005 at 17:32 UTC |