On Tue, 18 Mar 2003, Navid M. wrote:

> I was wondering how you can evaluate parts of a
> string:
>
> Ex: $fileName = "File";
>     $var = '1>>$fileName';
>
> Now I would like a *simple* way of evaluating $var
> such that only '$fileName' gets substituted for its
> value.  'eval' doesn't work since it tries to evaluate
> the whole thing and '1>>' doesn't evaluate to
> anything.

Can you show the context in which you are trying to do this?  $filename
won't be anything inside $var because you are using single quotes (use
double quotes and $var will be equal to '1>>File').

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
Immortality consists largely of boredom.
                -- Zefrem Cochrane, "Metamorphosis", stardate 3219.8


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to