UBB.Dev
Posted By: Xiphoid_pAOM Quick Perl Question - 02/22/2003 10:48 AM
Let's say that I want to change the font color of $i below where it says ", $i topics started":

[code][/code]I'm running into a problem with the quotation marks around the statement when I try to add something like . The forum spits out a script error. Is there any way that I can get this to work?

Thanks in advance. smile
Posted By: PrimeTime Re: Quick Perl Question - 02/22/2003 11:03 AM
Hmm...I'm not a Perl coder but just by looking at what you have you can't use the "quotes" in the font tag. You could try:

Code
[/code]or 

[code]
Even that I don't know if that will work. I need to actually test it to see.
Posted By: Burak Re: Quick Perl Question - 02/22/2003 11:59 AM
use qq// operator:
[code][/code]
Posted By: PrimeTime Re: Quick Perl Question - 02/22/2003 12:43 PM
Sweet. smile
Posted By: CTM Re: Quick Perl Question - 02/22/2003 12:51 PM
Or you could escape the quotation marks with backslashes, ie:

[code][/code]The possibilities are endless... Though I'd go with jeo's way, it's a lot easier to do it his way than to go escaping characters all the time smile
Posted By: PrimeTime Re: Quick Perl Question - 02/22/2003 12:56 PM
So that's what the black slashes are for...Interesting. Makes me curious about the "/" slashes...The UBB Code Block has that as well as the Statistics Mod. The Stats almost looks as if the codes were written in reverse?
Posted By: Xiphoid_pAOM Re: Quick Perl Question - 02/22/2003 8:42 PM
Thanks guys, I appreciate it. smile
© UBB.Developers