This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
From: efflandt@xnet.com (David Efflandt) Subject: Re: CGI.pm resources... anything on the next explaining p() commands, etc? Reply-To: efflandt@xnet.com Organization: XNet Information Systems, Inc. References: <39771d24.8139242@news.earthlink.net> Message-ID: <slrn8nfh43.tmf.efflandt@efflandt.xnet.com> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 20 Jul 2000 20:34:53 -0600 X-Trace: 20 Jul 2000 20:34:53 -0600, 206.125.69.81 Lines: 36 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:91395 On 20 Jul 2000, Jon S. <jonceramic@nospammiesno.earthlink.net> wrote: : :I'm not sure if I'm just missing the links or if they don't exist. :I'm trying to find documentation on the web regarding some of the :features of CGI.pm. Stein's documentation that comes with CGI.pm :doesn't include any detailed discussion of things like p() and font(), :despite including them in the sample code on his book's website. Are :there any sites that do? Any RTFM's that I've missed? Fonts are quite simple (function method): $f = 'Arial,Helvetica'; # set font near beginning of script print font({face=>$f,size=>'-1'},'Something here'),p; I learned how to do some things like tables by trial and error, since they are not explained in perldoc CGI. For example if you want to right align form field labels with left aligned form fields put a dot instead of comma between td([])'s that go on the same row, for example (function method): print start_form,table(Tr([ th({colspan=>2},['Some Header']), td({align=>'right'},'Label1:']) . td([textfield('field1')]), td({align=>'right'},'Label2:']) . td([textfield('field2')]), td([' ,submit]) ])),end_form; -- David Efflandt efflandt@xnet.com http://www.de-srv.com/ http://www.autox.chicago.il.us/ http://www.berniesfloral.net/ http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/ -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: brian@smithrenaud.com (brian d foy) Subject: Re: CGI.pm resources... anything on the next explaining p() commands, etc? Reply-To: brian@smithrenaud.com (brian d foy) Organization: PANIX Public Access Internet and UNIX, NYC References: <39771d24.8139242@news.earthlink.net> <slrn8nfh43.tmf.efflandt@efflandt.xnet.com> Message-ID: <brian-2007002342540001@180.sanjose-08-09rs16rt.ca.dial-access.att.net> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 20 Jul 2000 20:46:19 -0600 X-Trace: 20 Jul 2000 20:46:19 -0600, 206.125.69.81 Lines: 30 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:91397 In article <slrn8nfh43.tmf.efflandt@efflandt.xnet.com>, efflandt@xnet.com wrote: :I learned how to do some things like tables by trial and error, since they :are not explained in perldoc CGI. huh? all of these things are explained in the docs. :For example if you want to right align :form field labels with left aligned form fields put a dot instead of comma :between td([])'s that go on the same row, for example (function method): :print start_form,table(Tr([ :th({colspan=>2},['Some Header']), this is explained in the docs. all of the HTML functions can take an anonymous hash whose keys become attributes and whose values become, well, the attribute values. this is clearly documented. -- brian d foy Perl Mongers <URI:http://www.perl.org> CGI MetaFAQ <URI:http://www.smithrenaud.com/public/CGI_MetaFAQ.html> -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: jonceramic@nospammiesno.earthlink.net (Jon S.) Subject: Re: CGI.pm resources... anything on the next explaining p() commands, etc? Reply-To: jonceramic@nospammiesno.earthlink.net (Jon S.) Organization: EarthLink Inc. -- http://www.EarthLink.net References: <39771d24.8139242@news.earthlink.net> <brian-2007002125010001@134.sanjose-06-07rs16rt.ca.dial-access.att.net> Message-ID: <39786888.6723101@news.earthlink.net> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 21 Jul 2000 08:23:02 -0600 X-Trace: 21 Jul 2000 08:23:02 -0600, 206.125.69.81 Lines: 54 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:91401 On 20 Jul 2000 18:29:05 -0600, brian@smithrenaud.com (brian d foy) wrote: :In article <39771d24.8139242@news.earthlink.net>, jonceramic@nospammiesno.earthlink.net (Jon S.) wrote: : ::I'm not sure if I'm just missing the links or if they don't exist. ::I'm trying to find documentation on the web regarding some of the ::features of CGI.pm. Stein's documentation that comes with CGI.pm ::doesn't include any detailed discussion of things like p() and font(), : :yes it does. which part is unclear? Brian, Thanks for your response (and thank you for the metaFAQ!). I went back and did an RTFM again, and found starter information like I hoped at: http://stein.cshl.org/WWW/software/CGI/cgi_docs.html#html (the section called HTML Shortcuts) I had skipped to that part before, read the first few bits on headers and the like, and didn't scroll down enough to find what I needed when I saw the next bold heading (that didn't seem relevant). For those lurking, the relevant info starts with: ------------------------------------------ Other HTML Tags CGI.pm provides shortcut methods for many other HTML tags. All HTML2 tags and the Netscape extensions are supported, as well as the HTML3 tags that are in common usage (including tables). Unpaired tags, paired tags, and tags that contain attributes are all supported using a simple syntax. To see the list of HTML tags that are supported, open up the CGI.pm file and look at the functions defined in the %EXPORT_TAGS array. ------------------------------------------ It goes on to explain a number of them and the syntax rules regarding the classes of tags. Thanks again Brian for the "RTFM". I was, as is obvious, smoking crack at the time I posted. Jon -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: Thomas Jespersen <thomas@daimi.au.dk> Subject: Re: CGI.pm resources... anything on the next explaining p() commands, etc? Reply-To: Thomas Jespersen <thomas@daimi.au.dk> Organization: University of Aarhus, Department of Computer Science (DAIMI) References: <39771d24.8139242@news.earthlink.net> <srrgnsssc6eboubu3m94s8blov6oij9bsh@pne.com> Message-ID: <y4nk8efjwx4.fsf@commodus.daimi.au.dk> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 21 Jul 2000 09:02:15 -0600 X-Trace: 21 Jul 2000 09:02:15 -0600, 206.125.69.81 Lines: 16 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!natasha.rmii.com!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:91404 TonyG <tony@webscripts.org> writes: : Whats it called please? CGI Programming with Perl, 2nd Edition By Scott Guelich, Shishir Gundavaram, and Gunther Birznieks http://www.oreilly.com/catalog/cgi2/ Another interesting July release is 3rd edition of "Programming Perl" http://www.oreilly.com/catalog/pperl3/ -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: Drew Simonis <care227@attglobal.net> Subject: Re: CGI.pm resources... anything on the next explaining p() commands, Reply-To: Drew Simonis <care227@attglobal.net> Organization: mine References: <39771d24.8139242@news.earthlink.net> Message-ID: <397729DF.80FBF85F@attglobal.net> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 20 Jul 2000 09:38:35 -0600 X-Trace: 20 Jul 2000 09:38:35 -0600, 206.125.69.81 Lines: 28 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!natasha.rmii.com!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:91390 "Jon S." wrote: : : Hi All, : : I'm not sure if I'm just missing the links or if they don't exist. : I'm trying to find documentation on the web regarding some of the : features of CGI.pm. Stein's documentation that comes with CGI.pm : doesn't include any detailed discussion of things like p() and font(), : despite including them in the sample code on his book's website. Are : there any sites that do? Any RTFM's that I've missed? http://www.perl.com/pub/doc/manual/html/lib/CGI.html : : Are these features covered in his CGI.pm book? Yes : I can't find a copy at : the bookstores or libraries to page through I ordered my copy from a major chain, had it in 2 days. -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself.