On Mon, 7 Oct 2002 [EMAIL PROTECTED] wrote:

> Quoting guy keren <[EMAIL PROTECTED]>:
>
>
> > you can also use 'eval' - if the text contains valid perl code.
>
> Even if it doesn't. You can get the text into a string $string1, then do
> something like:
>
> $string2 = "\$string3 = \"$string1\"";
> eval($string2)
>
> and the result will be in $string3. Escape any quotes inside the original text
> ($string1).
>

eval is very dangerous as it can execute arbitrary Perl code found in the
expression. I'd recommend against using it.

Regards,

        Shlomi Fish

> Herouth
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>



----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED]
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       [EMAIL PROTECTED]

"Let's suppose you have a table with 2^n cups..."
"Wait a second - is n a natural number?"


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to