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;
In reply to Re: Homework question list
by TedPride
in thread Homework question list
by displeaser
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |