Hi abtimoteo,
Quote:
|
Originally Posted by abtimoteo
option 1: write each new submission to the beginning of the flat file. how can this be done under the following conditions?
a. my data is in binary mode.
b. a perl module is out of the question because of the restrictions imposed by my web host.
|
a: Why are you using binary for this?
b: See comments below on modules.
Quote:
|
Originally Posted by abtimoteo
option 2: reverse the array of news submissions - again, under conditions a and b above, before it is written to the file. i have tried doing it several times but ...
|
See the
reverse pod
You really should be using the
CGI.pm module to parse your input. Unless you are using a very old version of Perl this is a standard module.
If you structured your data (i.e. tab or | deliminated) it would be easier to m/(add|edit|delete|sort)/; when it comes time to work with it:
Then you can do just about anything you want with it at that point.
~Charlie