No, I can't use double quotes.  This is what's being
done:
. One of my perl scripts is sending this string
  1>>$filename' to another perl script, and it's
  in the second perl script where $filename is
defined. 
  So I need to take the string '1>>$filename' and
  replace $filename with its actual value in my 2nd
perl
  script.

Thanks,
 Navid M.


 --- "Brett W. McCoy" <[EMAIL PROTECTED]>
wrote: > 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
>  

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

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

Reply via email to