OK, you'll kick yourself /really/ hard this time!

1/    You build your HTML in $query_msg and then do the substitute in
$query_message

2/    None of those quotemeta() calls do anything, as you're throwing away
the results

Don't worry - soon be Christmas :-))

Cheers,

Rob


----- Original Message -----
From: "Mystik Gotan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 2:44 PM
Subject: Re: Substition problem with guestbook (smilies)


> Nope, still no avail.Anyway, I debugged some parts and with your code,
it's
> errorless right now :) So thanks very much. But it still, however, doesn't
> substitute :) with the <img src> code :'(
>
> Thanks anyay :) (I should be hating the smilies right now, but I'm still
> using them ;))
>
> --------------
> Bob Erinkveld (Webmaster Insane Hosts)
> www.insane-hosts.net
> MSN: [EMAIL PROTECTED]
>
>
>
>
> >From: "Rob Dixon" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Substition problem with guestbook (smilies)
> >Date: Mon, 23 Dec 2002 12:04:16 -0000
> >
> >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]
>
>
> _________________________________________________________________
> MSN Zoeken, voor duidelijke zoekresultaten!
> http://search.msn.nl/worldwide.asp
>
>




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

Reply via email to