OxYgEn has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way to add a string to an array permanently, so that when I run the script again the array will contain a string that was added the previous time?
If there are any substitutes to this which require text files or something, that's fine, too.
Ok, well I can't get the readmore tags to work, so if an editor wants to get this, please do, but for now I'm going to enclose it in lined spaces; treat it as a readmore:
---------------------------------------------------
-------------------------------------------------------
Thanks,
OxYgEn
If there are any substitutes to this which require text files or something, that's fine, too.
Ok, well I can't get the readmore tags to work, so if an editor wants to get this, please do, but for now I'm going to enclose it in lined spaces; treat it as a readmore:
---------------------------------------------------
Basically all I'm trying to do here is get it to print all the strings in an array, and if i give it certain args, add or remove a string from that array. Any possible way this could be done is fine; it doesn't have to read specifically from the array or anything(it could read from a text file or something like that as well). Thanks for reading the readmore.
-------------------------------------------------------
Thanks,
OxYgEn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Adding Strings to an Array Permanently
by BrowserUk (Patriarch) on Mar 02, 2004 at 00:42 UTC | |
Re: Adding Strings to an Array Permanently
by Roger (Parson) on Mar 02, 2004 at 00:28 UTC | |
by OxYgEn (Acolyte) on Mar 02, 2004 at 00:33 UTC | |
by Roger (Parson) on Mar 02, 2004 at 00:55 UTC | |
Re: Adding Strings to an Array Permanently
by tzz (Monk) on Mar 02, 2004 at 16:25 UTC | |
Re: Adding Strings to an Array Permanently
by prostoalex (Scribe) on Mar 03, 2004 at 00:41 UTC |
Back to
Seekers of Perl Wisdom