Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 14th, 2000, 09:37 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
functions

How about including a list of functions, Or perhaps a link

Reply With Quote
  #2  
Old November 14th, 2000, 10:17 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hola cgi

quiero aprender cgi

Reply With Quote
  #3  
Old November 14th, 2000, 06:27 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: functions

http://stein.cshl.org/WWW/software/CGI/
<br>
<br>
This is the documentation by the author of CGI.pm, Lincoln Stein, he also wrote a book on his module called "Official Guide to Programming with CGI.pm" ... Hope this helps.

Reply With Quote
  #4  
Old November 15th, 2000, 02:41 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: functions

from any command line (unix) you can get more info by using the wonderful perldoc function

ie:

[mrnatural chris]$perldoc CGI


Reply With Quote
  #5  
Old November 16th, 2000, 12:53 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hmmm.....

Typically I am not a MS fan but Front Page 97, 98 and 2000 all provide this functionality with a little copy paste action. Build your object in a GUI and copy the HTML into your "favorite text editor." I have been using extensively with DBI and Mysql DBD. Just choose the chunk of HTML that you want to loop and that is about the only time you will type "print". Just use:

print <<ENDHTML;


ENDHTML

to wrap you FP HTML and all is good.

"a Perl script is correct if it's halfway readable and gets the job done before your boss fires you." --Larry Wall


Reply With Quote
  #6  
Old November 17th, 2000, 02:54 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Crappy Print Version of the Article

When you print out the article, the white type on the gray background is ommitted - duh guys!

Reply With Quote
  #7  
Old March 6th, 2001, 04:40 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Useful Intro

I found this very useful introduction to CGI.pm. I was looking all over the web for a very simple intro, and this was perfect. I think I now have enough information to get my feet wet.

Thanks............

Reply With Quote
  #8  
Old March 18th, 2001, 03:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CGI vs CGI.pm

Comming from a programmers point of view... already familiar with programming language and syntax... this all must make sense and probably helps to transform cumbersome HTML into a more familiar package.

However from the point of view of someone who has struggled to learn basic HTML and has built a few personal homepages in HTML and otherwise knows nothing about programming languagees, syntax etc. it seems unduely complicated and redundant.

typing:

Code:
print "<html><head><title> MY PAGE </title></head><body>\n"; 


seems relatively straightforward and familiar to. I've done it a hundred times.

Now I need to forget what I already know and learn to write:

Code:
use CGI qw(:standard);

or maybe:
Code:
use CGI qw(:all); 

and:
Code:
print header(); 
print start_html(-title=>'MY PAGE'); 

which is fine... but completely unfamiliar and incomprehensible in terms of standard HTML
also what is the point of using:
Code:
print br(), hr();

rather than
Code:
print "<br><hr>";

and
Code:
print end_html();

does't even save a keystroke over:
Code:
print "</html>";

why learn to use a code that you don't know just to generate a code that you already DO know when you can just use the cade that you already know in the first place?

I'm sure from the top down this makes sense... but from the bottom up it seems rather redundant.

If I alreay have a website with the HTML written out I can just paste the familiar HTML code into the CGI script to create a new CGI generated page that looks identical to my old HTML website... but If I have to covert to CGI.pm it seems I have to completely relearn and rewrite every inch of every line of code from scratch.

It seems something like trying to study Greek so I can use Greek "shorthand" to translate the Greek back into English.

That is probobly a good thing to learn Greek Shorthand(CGI.pm) for translating Greek(CGI) into English(HTML) if you already know Greek... but not such a good thing if you only know English.

Reply With Quote
  #9  
Old March 26th, 2001, 10:54 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CGI.pm Basics

CGI.pm Basics I learned more about CGI.pm in these brief tutorials then I have using the book The Official Guide to Programming with CGI.pm what a waste of money that was.
Thanks,
Paul You can read the article here .

Reply With Quote
  #10  
Old October 26th, 2001, 10:36 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
image help?

Hi: I'm running SuSE7.1, Konqueror, and Apache-1.3.14. The cgi script for uploading picture_file prints out binary code for the image. What needs to be added to print image? I can create a perl code script, run it from cgi-bin, and print out image, if I add print "Content-type: image/PNG\n\n"; at the top of my script. Is there something similar in CGI.pm? Thanks, Tom

Reply With Quote
  #11  
Old February 1st, 2002, 08:09 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: image help?

Yes, just type:

print header(-type => "image/png");

You can do this with any Content-Type you want too. =)

Reply With Quote
  #12  
Old November 11th, 2002, 03:21 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
cgi.pm

Excellent tutorial on cgi.pm. It was just what I was looking for! I downloaded the pdf file to keep the tutorial handy on my computer. Looking forward to the next installment
Paul :)

Reply With Quote
  #13  
Old April 16th, 2003, 10:32 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks

This site is awesome for someone without the funds to go buy lots of books. I/We appreciate it.

Reply With Quote
  #14  
Old May 28th, 2003, 03:33 PM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CGI.pm Basics

CGI.pm Basics

November 13, 2000 - Tired of writing Perl code to parse form data? Take a leaf from the book of the experts and let CGI.pm do all the work for you. This article introduces you to CGI.pm's powerful page construction and form parsing capabilities, with simple examples of how you can use it to simplify your Perl development. Click for full article.

Please discuss this article in this thread. You can read the article here .

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > CGI.pm Basics


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT