in reply to Re: add text to each line of a file
in thread add text to each line of a file

Why chomp? I belive the -l option chomps the line automatically. (See perlrun.)

Replies are listed 'Best First'.
Re^3: add text to each line of a file
by thor (Priest) on Mar 11, 2005 at 01:08 UTC
    You're absolutely right! I hardly ever use -n or -p, so I forgot about the "other" effect of -l. Thanks!

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come