The "code" (rather than "one liner") equivelent of tirwhan's example:
use strict; use warnings; local @ARGV = ('file.csv'); local $^I = '.bak'; while (<>) { print "prepended stuff - $_"; }
In reply to Re: Prepend Evey Line in a File
by GrandFather
in thread Prepend Evey Line in a File
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |