Well, as I couldn't figure out how to go back and update my original post, I'm doing it thusly!
My solution (ala
Mr. Muskrat): I slurped the file into a
$var,
split it on the magic line ("add here"
, basically) into an
@file, then opened the file again, printed into it
$file[0], my new crap, magic line,
$file[1]. close file. BINGO!
My thanks to all who have helped me. This has definitely been a learning experience and I'm getting more and more intimate with perl. Almost to second base... (oh, baby)
_____________________________________________________mojobozo
word (wûrd)
interj. Slang. Used to express approval or an affirmative response to
something. Sometimes used with up. Source