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
 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
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,613
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
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:17 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2