DBM::Deep allows this and those tests pass on Win32 platforms. So, I would say that the answer is "Yes."
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
| [reply] |
Interestion question, but I'd say no. At least not as you think. PAR and other "pseudo compilers" simply pack all files needed to run the script into a single self extracting archive. When you run it, the files get unpacked into a temporary directory. So altering the script file might work as long as the temp directory exists. To be sure it always works, you'd have to manipulate the archive itself (which in the case of PAR is simply a ZIP file)!
Anyway, I wonder why you want to store data in your script file. Why not just use an external file like (~/.yourapp, or MyFiles/.yourapp (for Windows))?
| [reply] [d/l] |
Thanks for your replies. I hope to hear more before I delve in. To "holli," my reason for wanting to write to my executable is to keep my project as a single file (rather than have users extract a folder with multiple files and add still more files with data: I guess I just want it to "look" clean and simple). cypress | [reply] |
| [reply] |