if ($. == 1){ chomp($_); # $_ =~ s/$_/$_ 1.0/g; $_ .= " 1.0\n"; # i.e. $_ = $_ . " 1.0"; }
In reply to Re: Re: appending to a particular line in a file
by mndoci
in thread appending to a particular line in a file
by mndoci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |