I found my problem, I was using a _ between my $variables to create a
 string, changed them to commas and everything is great!

> ----- Original Message -----
> From: "Chris Zampese" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 11, 2002 10:52 PM
> Subject: substitute
>
>
> Hi all, me again!
>
> I have a variable (mymessage) that contains alot of text, plus some
$scalar
> variables...
>
>  A bit like this.
>  my $mymessage= 'blah blah blah $myblah with a bit of $moreblah' ;
>
> then I would like to process this so I can use it as the body of an email.
> Like this.
> $mymessage =~ s/(\$\w+)/$1/eeg;
>
> This works great and I can continue with sending the email etc, but some
of
> my $scalars are all digits, and the above regex does not change them
> correctly.
> I have looked in the perl manpages, but I can only see how to do one or
the
> other, Anyone have any ideas??
>    Thanks as always,
>
>                     Chris.
>
>

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

Reply via email to