Good time!
I have problem reading saved data in a file, that is elements of array of strings like this:
'qweqwe', 'rtyr tyr', '\'asdasd', 'fghfg, hfgh'
etc. So, i get it in my script like
@data=do $file;
And here i get the problem: for example, the line from the file
'\'asdasd', 'fghfghfgh'
will be read in the array (two elements) as
asdasd fghfghfgh
instead of
\'asdasd fghfghfgh
that is one element of array misses leading _'_ sign. -- That makes my script unusable (as it uses that element, later, in a regular expression).
So, question is, How i should store my data regarding sign _'_ ?
What i try to achieve, in general, w/ the script is autochanging of text: one string for another (i.e. \'asdasd for fghfghfgh). So, to speed up the chaning process i think now store in the array already precompiled regexps rather than let it be compiled each time i run the script -- hence i would use already ready array rather that divide a string to array each time i run the script.
Thanks for any idea!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |