All these are going to add the percent sign after $/, no?
I'd use -l from the command line (e.g., Abigail's solution), or something like
$_=~s/$/%/;
replacing the
$_.='%';
(Update: autochomp will take care of this in Tie::File)
In reply to Re: add character to all lines starting with..
by delirium
in thread add character to all lines starting with..
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |