You can use chomp as chomp $scalar or chomp @array. If any of its arguments end with $/ (the input record separator; usually "\n") it will chomp off that part. It returns the total number of characters that it removes (from all of its arguments.)
-sauoq "My two cents aren't worth a dime.";
In reply to Re: The Chomp Idea.
by sauoq
in thread The Chomp Idea.
by $Variable_B
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |