sweetblood has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to programatically write(modify) the contents of DATA? By DATA I mean the data after the __END__ label in my script. Specifically, I what to keep a crc value embeded in my script to verify a data file prior to opening it. But after opening it I will be modifying this data file and will want to re-calculate and rewrite my embeded crc. I've tried to print DATA "whatever", but I get the following error:
Filehandle DATA opened only for input at write_data line 4.
Many Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing to DATA
by BrowserUk (Patriarch) on Nov 14, 2003 at 16:11 UTC | |
by sweetblood (Prior) on Nov 14, 2003 at 17:33 UTC | |
by iguanodon (Priest) on Nov 14, 2003 at 18:14 UTC | |
|
Re: Writing to DATA
by Anonymous Monk on Nov 14, 2003 at 16:25 UTC | |
by bart (Canon) on Nov 15, 2003 at 07:31 UTC | |
by sweetblood (Prior) on Nov 14, 2003 at 17:30 UTC | |
by Anonymous Monk on Nov 14, 2003 at 17:43 UTC | |
by sweetblood (Prior) on Nov 14, 2003 at 18:23 UTC | |
by Anonymous Monk on Nov 14, 2003 at 18:40 UTC |