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!
In reply to Writing to DATA by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |