For example, use TIME and COUNT to replace messages...
foreach $message (@messages) { $message =~ s/TIME/$time/g; $message =~ s/COUNT/$count/g; print "$message<br />"; }
But if you need many reserved words it can have more or less cpu costs...
But it more secure with use eval...
--
Marco Antonio
Rio-PM
In reply to Re: Parsing a string from a file
by mda2
in thread Parsing a string from a file
by RayQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |