If you really mean just the last non-newline character:
#! perl -slw use strict; my @array = map{ chomp; chop } <DATA>; __END__ xxxxxx: 0 yyyyyy: 6 zzzzzz: 5
In reply to Re: Last Character into Array
by BrowserUk
in thread Last Character into Array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |