Results 1 to 3 of 3
I'm trying to IE, make
Code:
<P style="background-color:#222222">Hello!</P>
Work inside a Perl Script: "comments.pl"
For those wondering:
Code:
#!/usr/bin/perl -w
htmlReturn();
sub htmlReturn {
Thanks for Commenting! That's all!
}
...
- 12-31-2008 #1
[SOLVED] Help Making HTML tags work in Perl
I'm trying to IE, make
Work inside a Perl Script: "comments.pl"Code:<P style="background-color:#222222">Hello!</P>
For those wondering:
That's my code so far!Code:#!/usr/bin/perl -w htmlReturn(); sub htmlReturn { Thanks for Commenting! That's all! } #End this Subroutine.
Any ideas?
- 01-01-2009 #2
I'm afraid I don't entirely understand. Are you just trying to print "<P style="background-color:#222222">Hello!</P>"? Then just use the "print" function.
DISTRO=Arch
Registered Linux User #388732
- 01-02-2009 #3
Perl Problem Yet Again!
I already found out the answer.
Values for a HTML tag's attribute is strictly in double quotes:
And double quotes for print strings are also in double quotes if you are printing more than one character."
But, I found out that you can just useIn place of quotation as an attribute's value.\" \"
If it's alright, I need to post another problem I have with another script I have made; for uplaoding an image.
I made a global variable called: "$SafeChar".
But no matter how many times I rename it, Eclipse gives me this Error:
That Error is inline by the way; within one line.Global Symbol
$SafeChar requires an Explicit Package Name
And I also get this message:
I'm using EPIC- Eclipse Perl Integration Plugin- to make this script and Kedit for the last one mentioned about the quotation problem.Variable $SafeChar is not imported
All other Variables work Like a Charm Except for those Errors that I for one character have no use for right now, for I am testing these scripts to use on a day that I get a website with CGI-BIN support.



