A little Tie::File fun:
perl -MTie::File -e 'tie @a, q{Tie::File}, shift; chomp $a[-1]' file.t +xt
Dave
In reply to Re: How to chomp the last new line character from the file
by davido
in thread How to chomp the last new line character from the file
by jojojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |