electronicMacks has asked for the wisdom of the Perl Monks concerning the following question:
A “simple” question:
Is there any elegant way to preprend data to a file in *nix with Perl? I can easily come up with several hacks (copying the file, slurping the file etc...) but I really hope there’s a better way.
Humbly,
electronicMacks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Prepending to a file
by chipmunk (Parson) on Feb 06, 2001 at 09:47 UTC | |
Re: Prepending to a file
by Adam (Vicar) on Feb 06, 2001 at 07:45 UTC | |
by electronicMacks (Beadle) on Feb 06, 2001 at 07:55 UTC | |
by MeowChow (Vicar) on Feb 06, 2001 at 08:03 UTC | |
Re: Prepending to a file
by extremely (Priest) on Feb 06, 2001 at 07:55 UTC | |
by dkubb (Deacon) on Feb 06, 2001 at 13:36 UTC | |
by ibm1620 (Hermit) on Oct 01, 2016 at 03:32 UTC | |
by afoken (Chancellor) on Oct 01, 2016 at 06:49 UTC | |
Re: Prepending to a file
by sierrathedog04 (Hermit) on Feb 06, 2001 at 08:07 UTC | |
by baku (Scribe) on Feb 06, 2001 at 20:47 UTC |
Back to
Seekers of Perl Wisdom