Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Programming & Scripting > [SOLVED] Help Making HTML tags work in Perl

Forgot Password?
 Linux Programming & Scripting   C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 12-31-2008   #1 (permalink)
Just Joined!
 
heyyeh's Avatar
 
Join Date: Aug 2008
Posts: 69
Exclamation [SOLVED] Help Making HTML tags work in Perl

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!
}
#End this Subroutine.
That's my code so far!
Any ideas?
heyyeh is offline  


Old 01-01-2009   #2 (permalink)
Trusted Penguin
 
Cabhan's Avatar
 
Join Date: Jan 2005
Location: Boston, MA, USA
Posts: 2,691
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=Gentoo
Registered Linux User #388732
Gentoo Linux, 410 GB HD, 1.2 GB RAM, Fluxbox, These are a Few of my Favorite Things
Cabhan is offline  
Old 01-02-2009   #3 (permalink)
Just Joined!
 
heyyeh's Avatar
 
Join Date: Aug 2008
Posts: 69
Question Perl Problem Yet Again!

I already found out the answer.
Values for a HTML tag's attribute is strictly in double quotes:
Quote:
"
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 use
Quote:
\" \"
In 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:
Quote:
Global Symbol
$SafeChar requires an Explicit Package Name
That Error is inline by the way; within one line.

And I also get this message:
Quote:
Variable $SafeChar is not imported
I'm using EPIC- Eclipse Perl Integration Plugin- to make this script and Kedit for the last one mentioned about the quotation problem.

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.
heyyeh is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:09 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2