Hi

You'll kick yourself...

     $query_message =~ s/:\)/<img src="$smilies_dir/$s1full">/;

First slash terminates the substitute.

Use

     $query_message =~ s[:\)][<img src="$smilies_dir/$s1full">];

or similar.

Rob


"Mystik Gotan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there!
>
> I've got a problem. I scripted a nice guestbook script. All working fine,
> and then I thought about adding smilies to the script. Now, the only
> solution doing this is using tr/// or s///. Tried both, no effect. I
really
> tried a lot, but still getting some errors. So, I thought, adding use
> strict; will help a bit (deleted it and I knew I had to add it sometime).
> When removing the smilie stuff, everything works fine. So here's the
script
> and the logfile. I'd really appreciate if someone can fix it for me, I've
> been learning Perl for a very long time now (however, having months I
didn't
> do anything about it), but I don't really have experience, which also
means
> debugging isn't too familiar for me (thought I did a good job at the first
> beta of this one... ;)).
>
> Anyway, attachments provide the actual script and logfile.
>
>
> --------------
> Bob Erinkveld (Webmaster Insane Hosts)
> www.insane-hosts.net
> MSN: [EMAIL PROTECTED]
>
>
>
> _________________________________________________________________
> Ontvang je Hotmail & Messenger berichten op je mobiele telefoon met
Hotmail
> SMS http://www.msn.nl/jumppage/
>



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

Reply via email to