Re: Confusion on @array vs $array[] vs $array
I can see where you're coming from on this. However the most obvious reason is that perl has no relationship in scalar context between @somename and %somename. Your question regarding the special $ is not germane to this concept. Each element of the array is a separate scalar variable, accessed by each key of the index. Therefore to retrieve a scalar value, you must use a scalar reference. In this case $key. Other wise you would be asking Perl to find @key (a list) which really doesn't exist. That's unless of course you had created it. That's the way I see the thing. -Original Message- From: Lance Murray[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Dec 18 09:02:04 PST 2002 Subject: Confusion on @array vs $array[] vs $array Hello: I have been fairly confused on the intermixing of array naming standards. If I understand correctly, the @array syntaxt is used to refer to the whole array, while $array[n] is refered to specific elements. In my thinking, it would have been less confusing to use @array[n] to address specific elements, but Perl complaines bitterly when warnings /or strict is enabled. Is the rational for the $array[] character for identifying @array elements due to the fact that the $ character has special meaning (denotes variable or element) within double quoted text, while the @ sign has no special meanign within double quotes. Anyway, perhaps one of you syntactical thought police could give me some insights to the rational. I find it very confusing that the $ and @ characters are supposed to be used interchangeably to denote arrays, particularyly when I'm trying to fathom the relation to other issues such as scalar or list context. As I recall, hashes arso use % and @ interchangeably. Thanks, Lance -- #!/usr/bin/perl print Lance Murray, Information and Communications Systems\n, # department The Church of Jesus Christ of Latter-Day Saints\n, # employer and religion (801) 240-6583, murraylk\@ldschurch.org\n\n, # work phone number and email \Better to do a little well than a lot poorly (Socrates)\\n; # philosophy @P=split//,.URRUU\c8R;@d=split//,\nrekcah xinU / lreP rehtona tsuJ;sub p{ @p{r$p,u$p}=(P,P);piper$p,u$p;++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord ($p{$_})6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/ close$_}%p;wait until$?;map{/^r/$_}%p;$_=$d[$q];sleep rand(2)if/\S/;print -- This message may contain confidential information, and is intended only for the use of the individual(s) to whom it is addressed. == ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: automatically downloading files into a certain directory
You could try using a refresh. First click pulls the information from the database and stuffs it into a file. The refresh loads the link of that file and downloads it from the browser. -Original Message- From: zentara[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Dec 12 05:35:48 PST 2002 Subject: Re: automatically downloading files into a certain directory On Thu, 12 Dec 2002 09:21:37 +0100, [EMAIL PROTECTED] (Anette Seiler) wrote: I want to do something where I am not sure it can be done with perl... Basically a user should klick on a button on a website. Then the script should create a file with certain information from a database on the webserver (that's easy) and that file should automatically be downloaded into a certain directory on the user's computer (that is the difficult part). The user is not computer illaterate, but he should not bother about downloading and choosing certain directories (as he will have to download hundreds of these files) and definitely not about ftp or something like that. Well, as I said, it is the downloading part that I don't know how to do. Can it be done with perl or should I look at something else - maybe javascript? I don't think it can be done automatically like you want, from a web browser. It would cause too many security problems. In a web browser, the user must be asked to save anything to disk, once for each file. If you need automation of this kind, you should look into using a LWP script to automatically get the files, and keep the browser out of it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: html redirect using CGI.pm
if ($password ne $upassword) { print Location: /pages/login.htm\n\n; } else { print Location: /pages/yourpage.htm\n\n; } Something like that may work. -Original Message- From: Scot Robnett[EMAIL PROTECTED] To: Admin-Stress[EMAIL PROTECTED], perl cgi[EMAIL PROTECTED] Date: Mon Dec 09 13:31:49 PST 2002 Subject: Re: html redirect using CGI.pm You might want to just use redirect(), check perldoc CGI - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 2:42 PM To: perl cgi Subject: html redirect using CGI.pm Hi, Could someone check my code below? I need to redirect to a html using CGI.pm perl module. But when I executed, I got blank page. If I commented out $cgi-start_html ... it's working fine, but no redirection. $cgi = new CGI; sub Error { my ($msg) = @_; print BRBRBRBRBRBRBRBRBRBR; print TABLE border='0' width=500 align=center bgcolor=#C7D7F3; print TRTH align=center bgcolor=#FFfont color=#FF Error /font; print TRTH ; print TRTH align=center$msg; print TRTH ; } $upassword = $cgi-param('password'); if ($password ne $upassword) { print $cgi-header; print $cgi-start_html(-head=meta({-http_equiv = 'Refresh', -content = '5', -url = 'http://mydomain.homelinux.net/login.html'})); Error Wrong password.; exit(0); } __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: tutorials
Yes, it's pretty good but, the font sizes on the page are too big. Someone may consider changing them to font size 2. Other then that it's an informative site. -Original Message- From: Ovid[EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Sun Nov 24 13:55:12 PST 2002 Subject: Re: tutorials --- [EMAIL PROTECTED] wrote: does anybody have any really good sites or books that deal just with CGI as in applications to web programming. Almost all i have found in the book area is how to code perl in the command line interface. I looking for just web based stuff. Thanks You can also check out http://users.easystreet.com/ovid/cgi_course I assume that you already know Perl and know *some* HTML, but that's about it. I think it's fairly easy to read and has gotten some good reviews. Let me know what you think. Cheers, Ovid = Ovid on http://www.perlmonks.org/ Web Programming with Perl: http://users.easystreet.com/ovid/cgi_course/ Silence Is Evil: http://users.easystreet.com/ovid/philosophy/decency.txt __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: tutorials
I really like your ideas and the examples. I just have a hang up with having to scroll to the left on pages. Hey, It's me not you (-8 -Original Message- From: Ovid[EMAIL PROTECTED] To: Mark Bergeron[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Mon Nov 25 09:05:47 PST 2002 Subject: Re: tutorials --- Mark Bergeron [EMAIL PROTECTED] wrote: Yes, it's pretty good but, the font sizes on the page are too big. Someone may consider changing them to font size 2. Other then that it's an informative site. Heh :) I used to have people complaining that the font was too small (on earlier incarnations of the site). Cheers, Ovid = Ovid on http://www.perlmonks.org/ Web Programming with Perl: http://users.easystreet.com/ovid/cgi_course/ Silence Is Evil: http://users.easystreet.com/ovid/philosophy/decency.txt __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: tutorials
Don't forget about the Official Guide To Programming With CGI.pm. The book is hard to find but the site has a lot of information and examples: http://www.wiley.com/legacy/compbooks/stein/index.html -Original Message- From: Al Hospers[EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Sat Nov 23 14:32:42 PST 2002 Subject: Re: tutorials try the O Reilly series. there is a great book, CGI Proramming With Perl that I use all the time. hth Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 5:26 PM To: [EMAIL PROTECTED] Subject: tutorials does anybody have any really good sites or books that deal just with CGI as in applications to web programming. Almost all i have found in the book area is how to code perl in the command line interface. I looking for just web based stuff. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: tutorials
Yes, CGI with Perl is a great one. I wish they would print a 3rd Edition though. -Original Message- From: Scot Robnett[EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Sat Nov 23 14:30:15 PST 2002 Subject: Re: tutorials Always look to O'Reilly first, they usually have something not only relevant to your request, but well-written and comprehensive as well. Try CGI Programming with Perl. It's the one with the mouse on the cover. I don't have this one, but I hear The Perl Cookbook is supposed to be good also. - Scot Robnett inSite Internet Solutions Square West Center 454 West Jackson Street Woodstock, IL 60098 (815)206-2907 office (815)790-9687 mobile [EMAIL PROTECTED] http://www.insiteful.tv -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 4:26 PM To: [EMAIL PROTECTED] Subject: tutorials does anybody have any really good sites or books that deal just with CGI as in applications to web programming. Almost all i have found in the book area is how to code perl in the command line interface. I looking for just web based stuff. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Non-caching META-tags
sub mainHeader{ print $q-header( -type = text/html, -expires = now ), $q-start_html( -title = Your Title); This has always worked for me. I don't know if will do everything for you. -Original Message- From: Nick Malden[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Nov 20 06:02:05 PST 2002 Subject: Non-caching META-tags When writing HTML, the trick I normally use to ensure that images etc are definitely the latest version, and not the cached version, is the following: META http-equiv=Cache-Control content=no-cache, must-revalidate META http-equiv=Pragma: no-cache I want to do the same thing in a page generated by perl/cgi, i.e something like: print $q-header, $q-start_html(-title='My new page', -meta={'http-equiv'='Cache-Control' 'content'='no-cache,must-revalidate'}) -meta={'http-equiv'='Pragma: no-cache'}); but this gives String found where operator expected at test.pl line 20, near 'Cache-Control' 'content' How does one get perl produce the equivalent of the META tags above? Nick _ Nick Malden, Manchester Gruppe, DESY, Notkestrasse 85, 22607 Hamburg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Menus and Forms
I'm pretty sure there is an example of just this type of thing here: http://www.cgi101.com/class/ch5/text.html Try that maybe (-8 -Original Message- From: Margaret[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Aug 20 02:01:53 PDT 2002 Subject: Menus and Forms Hi Can someone help me with these 2 problems I have : 1) I want to create 2 (or more) drop down lists. Depending on what is selected on the first list, the second list is generated and depending on what is selected on the second list the 3rd list is generated. I know this can be done in javascript, but it is hardcoded. I want to be able to generate the second list from a database. 2) Something similar to the above. When some fields are filled in on a form(Form1), the user presses submit and goes on to another form (Form2), more fields are filled in depending on form1's input. Form2 is submitted and form3 appears depending on what is filled in on Form2. The problem is that I have to keep on passing all the variables filled on Form1 as hidden fields on From2 and then all of Form1 and Form2 variables onto Form3 so that once Form3 is submitted I can get them using $q-param('var'). Is there an easier way to do this? Thanks Margaret -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: form display problem
Perl programming is like the Breakfast Bar at Shoneys! Take what you want and leave the rest. Ask questions, ask questions, ask questions. -Original Message- From: Janek Schleicher[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Jun 12 01:42:23 PDT 2002 Subject: Re: form display problem Ahammell wrote at Wed, 12 Jun 2002 05:32:19 +0200: Janek Schleicher wrote: It's a real crime to copy source code. I missed to say :-). Sorry. Here you see why. Cheerio, Janek Janek, Im sorry but I dont quite understand your statements. I sincerely hope that you are not accusing me of copying source code. I truly dont know why you would think that and if you dont I apologize for this part of my response. I simply posted with a question about my source code that I thought someone could help with. I didn't mean that it is a crime to copy source code from another program. I mean't it is very dangerous to program with a copy+paste style. Why? First of all, if you have to make a change later, then you should only have to change the code at ONE position. There's also a great danger that little errors are done by copying+paste. The source code posted here, showed some of the little errors: if ($href-{st_name1} eq $state) { #print $href-{quad_name}, $href-{st_name1}\n ; $state_hash{$href-{quad_name}} = $href-{st_name1} ; ^ } } elsif ($href-{st_name2} eq $state) { #print $href-{quad_name}, $href-{st_name1}\n ; $state_hash{$href-{quad_name}} = $href-{st_name1} ; ^ As you can see, both if-constructs are nearly the same. In fact there's only one character different (st_name1 = st_name2). The constructs make only sense when in the assignment the 1 is replaced by 2. Such little mistakes are typical for copying+paste - programming. It seems, that the author wanted to say: set the state of the hyperlink reference to quad_name to the reference of st_nameX, where the reference to st_nameX is the $state. Instead of that, the code says something like: set the state ... of quadname ... to st_name1 if reference of st_name1 eq $state set the state ... of quadname ... to st_name2 if reference of st_name2 eq $state set the state ... of quadname ... to st_name3 if reference of st_name3 eq $state set the state ... of quadname ... to st_name4 if reference of st_name4 eq $state As you can see, the real idea is hidden. That's an alert signal. Well, you could say, I have to be more carefully when copying. I should write a short comment to explain the idea. But that's not the way. You'll become a better programmer avoiding doubled code. (Or just take BASIC - use goto; peek; poke; and randomness line numbering) Doubled code have a similar functionality - that's why write a loop, subroutine, module, class, macro or use Perl's powerful eval. Of course it needs a little time - but you get it back later (with factor 3). As in the example above - you also could write a pseudocode like: foreach X (1 .. 4) set the state of the hyperlink reference to quad_name to the reference of st_nameX, if the reference to st_nameX is the $state. what should be possible to implement. I know it's hard, always to remember that I shouldn't copy code. In addition it's hard, when you're a programming newbie. So I always say - and that's simple to remember - that it is a real crime to copy code. Cheerio, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Matt Wright
Hey, this is cool. It's about time to update things around the universe. -Original Message- From: Camilo Gonzalez[EMAIL PROTECTED] To: '[EMAIL PROTECTED]'[EMAIL PROTECTED], Camilo Gonzalez[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Mon May 13 08:17:47 PDT 2002 Subject: Re: Matt Wright's formMail Thank you all for this link. -Original Message- From: Kevin Meltzer [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:53 AM To: Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: Re: Matt Wright's formMail try the rewrite from NMS: http://nms-cgi.sourceforge.net/ Cheers, Kevin On Mon, May 13, 2002 at 10:07:54AM -0500, Camilo Gonzalez ([EMAIL PROTECTED]) said something similar to: I've just been informned by my ISP that Matt Wright's formMail will no longer be allowed on any of their servers due to glaring security concerns. I know now I shouldn't have used it but back then I was stupid and not a subscriber to this fine list. Let this serve as a warning to those still using his crap. Does anyone have the URL of that site that offers alternatives to Matt's scripts? #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez Web Developer Taylor Johnson Associates [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.taylorjohnson.com http://www.taylorjohnson.com/ EOF -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Disciple - Master, why isn't everything perfect? Zen Master - It is. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using strict with DBI
Rob, use strict; shouldn't really affect the syntax of any DBI handle or statement. I would help if you included an example for us to have look at here. -Original Message- From: Rob Roudebush[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon Apr 29 18:15:23 PDT 2002 Subject: Using strict with DBI For some reason the DBI part of my code doesn't work with strict - is this a limitation or am I doing something wrong - I declare my variables as my or private - my $sth = DBI-... Another question how can I test my script at the command line with -w if it is interactive? Or how do I push warnings to browser? -Rob - Do You Yahoo!? Yahoo! Health - your guide to health and wellness ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Poll for my site
You could run a small img though your while loop and have it place one next to the other (side by side) using your rowcount values. That would be one way. or you could try it with a foreach() as well. Mark -Original Message- From: GsuLinuX[EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Tue Mar 19 09:11:38 PST 2002 Subject: Poll for my site Hi again from Istanbul:) , I wanna make poll for some datas that we obtain from the users. For this, i know howto insert the datas to my sql database, make an average or something specific but how can i show the results as visual which has become very popular in web sites? thanx Derya ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with ODBC/CGI/IIS
Not unless you purchase XP Pro. It also comes bundled with Win2K pro and of course Win2K Server. And BTW, i thought it was pretty crappy of MS not to have it for XP Home OR support PWS for XP Home. Oh well, Apache it is! -Original Message- From: Al Hospers[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Feb 14 13:31:25 PST 2002 Subject: Help with ODBC/CGI/IIS just out of curiosity... where do you get IIS these days? at one time it was a d/l on the MS site it also came with my NT server. can you d/l IIS5 somewhere? Al Hospers CamberSoft, Inc. alatcambersoftdotcom http://www.cambersoft.com Shockwave and Director development, CD-ROM, HTML, CGI scripting, and Graphic Design. A famous linguist once said: There is no language wherein a double positive can form a negative. YEAH, RIGHT -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Help with ODBC/CGI/IIS
Yes, by all means get out of the registry. There are so many other ways to set your stuff up. Unless of course you really like that sort of thing. Here is a link from MS on IIS. It may help: http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/iis/tips/iis5chk.asp IIS 5 Overview and tips: http://www.microsoft.com/windows2000/en/server/iis/ I have also used some of MS's lookdown tools and other utilities. I have those links too if you want them. Mark -Original Message- From: Al Hospers[EMAIL PROTECTED] To: 'Hall.Liz'[EMAIL PROTECTED], [EMAIL PROTECTED] Date: Thu Feb 14 02:28:59 PST 2002 Subject: Re: Help with ODBC/CGI/IIS Once I am in regedit.,however, I am not sure where to look to change this in general you don't set permissions in Regedit. try right clicking on the fole in question looking at the Security tab. Al -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Is there a good CGI.pm tutorial online?
If you have not checked out the CGI.pm site you should. I contains a lot of ready to go examples. You can cut and paste onto your machine and really play around with them. Here is the links: http://www.wiley.com/legacy/compbooks/stein/source.html http://stein.cshl.org/WWW/software/CGI/cgi_docs.html Mark' -Original Message- From: Briac Pilpré[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sun Feb 03 11:55:27 PST 2002 Subject: Re: Is there a good CGI.pm tutorial online? On Sun, 03 Feb 2002 19:20:07 GMT, Steven Rubin [EMAIL PROTECTED] wrote: Is there a good CGI.pm tutorial online? I am interested in learning how it works, and how it can benefit me. Curtis Poe's 'Web Programming with Perl' tutorial is pretty good for beginning with CGI. Check it out at: http://www.easystreet.com/~ovid/cgi_course/ -- briac dynamic .sig on strike, we apologize for the inconvenience -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Windows XP
IIS is only bundled with XP Pro. Can you beleive that! What MS crapola. -Original Message- From: Steven Vargas[EMAIL PROTECTED] To: Kamali Muthukrishnan[EMAIL PROTECTED], [EMAIL PROTECTED] Date: Fri Jan 11 17:17:29 PST 2002 Subject: Re: Windows XP Is PWS, or IIS installed on the XP box? In the CMD prompt, type: net start w3svc. If get an error stating that it's not available, you'll have to install the web server. If you get a message saying it's starting, or already started, type: mmc. This brings up the console for the server. Click around and you'll see the docroot path for your system. Hope that helps, Steven -Original Message- From: Kamali Muthukrishnan [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 6:14 AM To: [EMAIL PROTECTED] Subject: Windows XP I have installed the Perl interpreter and it works fine, when I check it using the command line. This system has the windows XP Pro. In a system with Windows 2000, when I write cgi using Perl, I stored the files in the C:\inetpub\wwwroot directory, when I wanted to upload it to the browser. Which is the corresponding one in the XP system ? Can someone help me please ? Kamali Kamali Muthukrishnan Computer Science Western Iowa Tech Community college 4647 Stone Avenue Sioux City IA 51102 Tel 712 274 8733 extn.1291 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question
Hey, that's what I was wondering too. But on windows XP. They screwed the developer by leaving out IIS and not supporting PWS with this version of Windows. -Original Message- From: Brent Mosley[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sun Dec 23 14:58:12 PST 2001 Subject: Question Hi everyone! I have a question- How do you configure Win32 Apache and ActiveState Perl for ASP? I have mod_perl and Apache-ASP downloaded but I need to configure httpd.conf correctly which is mostly running just core modules. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a CGI menu
For this I would consider using SSI. That way you only have to make your changes in the config files once for the whole site. Using SSI: http://www.perlmonks.com/index.pl Lots of different ideas here. Mark Bergeron' -Original Message- From: Gerry Jones[EMAIL PROTECTED] To: CGI Beginners[EMAIL PROTECTED] Date: Wed Dec 12 07:05:11 PST 2001 Subject: Creating a CGI menu I want to create a menu/navigational section for a website I plan on building, and I would like to know if there are any easy-to-use modules I could use, or if there's another way. My website will have many levels and I don't fancy copying, pasting and tweaking the HTML to get the menu to look right on every page. I need someway that will make life easier, that will preferably, automatically include new pages. TIA, Gerry. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: script doesn
Have you set up your cert on the server? -Original Message- From: Alex Chau[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon Dec 10 20:21:24 PST 2001 Subject: script doesn't work under https but works under http??? hi everybody, I have posted a script to my server, and it works properly if I use http://blarblar/cgi-bin/test.pl, but if I use https://blarblar/cgi-bin/test.pl with SSL, the browser will display the text instead of execute it. Can anyone tell me what's the possible problem? Thanks in advance. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cgi form
How are you calling the form. You might try and including a little of your code so we can see what's going on. -Original Message- From: Tat Nam[EMAIL PROTECTED] To: Beginners Perl[EMAIL PROTECTED] Date: Sun Dec 09 23:01:10 PST 2001 Subject: cgi form Hi, I'm writing a survey form. A cgi program processes the states of the form and print out somethings and it prompts the user to enter e-mail address in a text box. The user finishes the input of e-mail address. The same cgi program will call another cgi program to process the input email address. I managed to work out the work separately; one cgi program to manipulate the state of the form, another cgi program to process the email address. However, when i combined two cgi program into one. It runs into trouble. Do anybody help on this? ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hopefully I can see the light.
Mark, Have you seen this example: http://www.wiley.com/legacy/compbooks/stein/code/customizable.cgi I think it's close to what you want to acomplish. Loop through user defined preferences and set the bgcolor, etc... to the users choice. Check it out ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Need basic commands on perl programming
Not the best stuff in the world but it will get you started with a lot of the basics. Forms, directories, cookies. Stuff like that. GoTo: http://cgi.resourceindex.com/Documentation/ GL, Mark Bergeron -Original Message- From: Jerry Preston[EMAIL PROTECTED] To: reggy patagan[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Fri Dec 07 04:06:47 PST 2001 Subject: Re: Need basic commands on perl programming Reggy, The first line is #!/usr/local/bin/perl. You can add -w = warning or -T = taint (#!/usr/local/bin/perl -w) Then you can add 'use strict'. Jerry reggy patagan wrote: Good day: What are the basic comands in creating a perl programs, do i have to do it in a text editor or in a /usr/bin directory where perl is installed. I have a perl here with Version 5.6.0 and can you give me a simple program for just a guide?.. Thank you and more power. reggy __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cookie Help PLEASE!
In your conditional loop for checking the PW, why don't you just use a Reponse redirect. if ( defined $cookie ) { print $q-redirect(/gamepage.htm); } else { print Location: /index.htm\n\n; } untested. -Original Message- From: Andre` Niel Cameron[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sat Nov 17 10:57:41 PST 2001 Subject: Cookie Help PLEASE! Ok, I finaly joined a perl list as I have been banging hy head against the wall for 3 days trying to get this to work! I would really appreciate any help:) Heres is the problem: I have a script that after you Login it should give you a cookie and then load the game start page. Well problem is it gives the cookie but then does not load the page! I am using CGI.pm for this as cookie-lib did not work overly well. Here is my code(Don't laugh) #Do Player Login if ($ENV{'QUERY_STRING'} eq Login) { CGI::ReadParse(*form); $password= $form{'password'}; $username= $form{'username'}; $file= data/$username.db; open (USR, $file) || die(Badpw_Page); @Read_Password=USR; close(USR); chop(@Read_Password); if($Read_Password[0] eq $password) { print LoadMyCookie; print GameStart_page; exit; } else { Badpw_Page; exit; } } # #Load Cookie # sub LoadMyCookie { $bbtdPlayerData = $TheCookie-cookie(-name='bbtdplayer', -value=[thing, stuff, t$ print $TheCookie-header(-cookie=$bbtdPlayerData); exit; } #Game Start Page sub GameStart_page { print Content-type: text/html\n\n; print EOT; Normal frames HTML page here I just did not want to stick it all in:) EOT exit; } You can see it all at http://a.axxs.net username is andre and password is password Any more info needed email me:) Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trying to write to a file
And I quote, just like 6 lines of code and it doesnt work so I need some help. Are you sure about this? -Original Message- From: Matthew Mangione[EMAIL PROTECTED] To: Linux Beginners[EMAIL PROTECTED] Date: Thu Oct 25 09:35:02 PDT 2001 Subject: trying to write to a file hey im trying to write to a file with just like 6 lines of code and it doesnt work so I need some help. here is the code: #!perl open DATA, mydata.dat; unless ($success) { print Problem Encountered; die; } print DATA Hi Matt; thanxmatt ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions
I know this is a beginner's list. And, we have all been at the point of starting out but, you've get to explain your situation a bit better than this. What window?, do you want to collapse a window during a process and have it post something on after the completion of another process. In front?, behind?. this kind of info would help evaluate your situation and advise you of what path to take. P.S. take your time. no one will poke fun. and if they do, shame on THEM. -Original Message- From: Gary M Rocco[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Oct 25 07:37:53 PDT 2001 Subject: questions hi! please consider the following: i downloaded the perl source from active state. is there an index of commands/instructions with syntax rules included in the download? if not, where might i find one? i am using windows 98. must i run scripts from the dos prompt? how can perl be used to make a minimized window active again(i am not asking for someone to write a program for me, just to point me in the right direction--what instructions to look at, etc.) thank you! gary rocco ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: i need help with Perl and HTML please
You have to call the script from the form element: form action=/cgi-bin/yourfile.pl method=post --All of your fields or etc.. here-- /form or you could trigger it with a link a href=/cgi-bin/yourfile.pl?Name=UserDay=TodayLogin In/a something like that. -Original Message- From: _brian_d_foy[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Oct 23 10:00:47 PDT 2001 Subject: Re: i need help with Perl and HTML please In article 002c01c15be0$ace0cc60$a000330a@watertown, [EMAIL PROTECTED] (Matthew Mangione) wrote: hey im really new to Perl and HTML and so far I've only learned the basics of the Perl language. I have been aquainted with C++ however and the language is coming to me pretty easily. My job on my webteam that we have for our school is to be the one who writes the CGI-scripts. So far i have basic scripts written out, but i do not know how to have the webpage run the scripts (i am not too good with HTML - it is not my part of the team but the other person also does not know). can anyone help me please??matthew mangione start with the CGI Meta FAQ :) -- brian d foy [EMAIL PROTECTED] - Perl services for hire CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free CGI Hosting?
Why don't you just run the scripts on your machine? You can do that ya' know. You just need a free webserver like Apache or PWS (Personal Web Server) from MS. -Original Message- From: pAuLyOYo[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sun Oct 21 18:26:43 PDT 2001 Subject: Free CGI Hosting? Hi all, I'm a newbie in pearl. I'm reading Learning Perl, is kind a easy, well, if i wouldn't know c, would be hard... enough of that... i need a free server that allows cgi, to star practice... can somebody recomment me some servers? thanks = Paulyoyo! - www.yoyoperu.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The removal process for padula
Aawww, Itdel weedle padula got dawere feelings hwurt. )-8 -Original Message- From: aurillo, gabriel[EMAIL PROTECTED] To: padula, domenic[EMAIL PROTECTED], '[EMAIL PROTECTED]'[EMAIL PROTECTED] Date: Thu Oct 11 10:26:06 PDT 2001 Subject: Re: Everyone please move on RE: Sh*t Whether the unsubscribe script works or not, the real issue is whether one can articulate one's thoughts without resorting to profanity. Anyone who thinks cuss words will make him/her sound smarter than the holier than thou, is completely missing the point - no one professes perfection here. Point out the mistakes -- without being belligerent. Otherwise, don't say you're being helpful. Just go away... -Original Message- From: padula, domenic Sent: Thursday, October 11, 2001 12:58 PM To: '[EMAIL PROTECTED]' Subject: FW: Everyone please move on RE: Sh*t Perhaps but WE can't help you. It should be taken offline with an administrator for the courtesy of others on this list. -Original Message- From: Chris Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:18 To: padula, domenic Subject: Re: Everyone please move on RE: Sh*t No, let's not move on yet, maybe it isn't clear to all you holier than thou programming shit heads that there is a PROBLEM with the FUCKING unsubscribe script! It does not work for everyone !!! padula, domenic wrote: How about we just stop commenting on this. Most of us would like to move on get back to Perl questions. -Original Message- From: Chuck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 10, 2001 20:41 To: Inspirational Michael; Kipp, James; [EMAIL PROTECTED] Subject: Re: Shit Jeezzuuzz. This message assumes you are familiar with common GUI mail clients and can use one properly. (I know *GASP* this is a very large assumption) Okay goo-goo, here's how. aka Mailing List 101 Compose a new mail message by clicking the cute little Create Mail icon. In the To: field, cut and paste the following: [EMAIL PROTECTED] NO SUBJECT OR BODY NEEDED Click the Send button. Not sure if this applies to this list, but do it anyway: Wait for an automatic response. Highlight the message. Click Reply. Click Send. Wait for the confirmation message. Have a nice life. Sheesh. I feel like I am sending an idiot-proof howto to the non-techincal users in my company. - Original Message - From: Inspirational Michael [EMAIL PROTECTED] To: Kipp, James [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 10, 2001 12:03 PM Subject: Shit Who cares, just get me off - Original Message - From: Kipp, James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 10, 2001 7:43 AM Subject: RE: Fuck This.. well you are not offending me, but you do look like a jack-ass now -Original Message- From: Inspirational Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 10, 2001 7:02 AM To: [EMAIL PROTECTED] Subject: Fuck This.. Sorry who I offend, but I am now working to get kicked off of this list - Original Message - From: Grierson, Garry (UK07) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, October 10, 2001 5:07 AM Subject: RE: Sending someone to a new location... You are absolutely right, that is much shorter ;) I assumed James was a relatively new, newbey (sorry if I'm wrong James!) and tried to show as clearly as possible what was happening to make the connection. It is worth mentioning that if using the 'Location' header it may require the 3XX type status code if the browser doesn't automatically add this, or it may not work with some older browsers atoll, although on today's standard browsers there should be no trouble. I'm not trying to be facetious, honestly, but I have had these problems in the past! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- The Kernel Mangler! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Getting Stared with CGI.pm
I don't know if you've tried this one yet? http://stein.cshl.org/WWW/software/CGI/ The site of the guy that wrote cgi.pm -Original Message- From: Carl Franks[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon Oct 08 06:26:49 PDT 2001 Subject: Re: Getting Stared with CGI.pm I can recommend a good web tutorial that got me started in perl: http://www.cgi101.com/class -- In article [EMAIL PROTECTED], [EMAIL PROTECTED] (David Gilden) wrote: Good afternoon, This is my first shot at using CGI.pm (using the function-oriented style). I can't seem to get my script to read values from my web page. http://dowda.rockin.net/cgi/sql_sort2.pl Here is part of the script. Your comments are welcome. Special thanks to [EMAIL PROTECTED] (Curtis Poe) for jump start on this. One last question, is there a better or different way to pad the buttons of a radio group with spaces then to add them to hash values? Thanks Dave #!/usr/bin/perl -w use CGI qw/:standard/; require dbi-lib.pl; # use strict; # use CGI qw/:standard :html :cgi-lib/; my ($sex,$sort_by,$sort_direction,$new_row ,$row_count, $first_name, $last_name, $birthday, $gender, $height, $weight); $new_row =tr\n; initialize_dbi; run_statement(select * from friends;); ## Get sort order via post method #my %FORM_DATA = Vars; # $sort_by = $FORM_DATA{sort_order} || 0; # $sort_by = 0; my %sort_by =( 0 = 'Nothing ', 1 = 'Hash ', 2 = 'First Name ', 3 = 'Last Name ', 4 = 'Birthday ', 5 = 'Sex ', 6 = 'Height ', 7 = 'Weight ', ); # Was hash this really necessary, my %sort_direction =( 0 = 'High to Low ', 1 = 'Low to High ', ); print header, start_html( -title = 'SQL Sort with CGI.pm' ), start_form( -method = 'POST' ), radio_group( -name= 'sort_by', -values = [ keys %sort_by ], -default = $sort_by, -labels = \%sort_by ); print p, submit( -value = 'Sort Data' ), , radio_group( -name= 'sort_direction', -values = [ keys %sort_direction ], -default = $sort_direction, -labels = \%sort_direction ), /p\n; print end_form; $sort_by = param('sort_by') || 0; # Sort by Name, sex, ect... $sort_direction = param('sort_direction') || 0; # Sort Direction for numbers print -x100,\n; foreach $names (param()){ print bData in: $names = param($names)/bbr\n } # strip off white space my $tmp; ($tmp = $sort_by{$sort_by}) =~ s/\s+//g; print p( 'Sort Database by' . font( { color = 'red' }, $tmp: \$sort_by= $sort_by ) . param('sort_direction') .'test'); ** * Cora Connection Your West African Music Source * * http://www.coraconnection.com/ * * Resources, Recordings, Instruments More! * ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Simple CGI Question
Yes, I would agree, You'll find with just a little practice, you can write you own code and scripts easier, faster, and most times, more efficient for what you need. -Original Message- From: Randal L. Schwartz[EMAIL PROTECTED] To: [EMAIL PROTECTED], Geoff Ball[EMAIL PROTECTED] Date: Sat Sep 29 15:25:49 PDT 2001 Subject: Re: Simple CGI Question Geoff == Geoff Ball [EMAIL PROTECTED] writes: Geoff I have a very basic question. At webmonkey.com I found a CGI Tutorial, I'd stay away from that tutorial. You're writing code that doesn't start use CGI. That's making you do a lot of things the very hard way. Can you described in English what you actually want to do, and maybe some of us can point you at the things that might help? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____ | _ ) ___ ___ | | | _ \/ _ \/ _ \|_| |___/\___/\___/(_) ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: structure of scripts (newbie Q)
One of the reasons I have learned is that you're able to maintain a better flow of control. With your logic defined at the top of the program, readability becomes easier. You define what it is you want the app to accomplish. (The meat) and then you design your output and user interface funtions through the use of subs (The sizzle). Changes are more easily managed this way and it makes for reusable code. There of course are many good books on standardization and coding guidelines. If you go to Perl.com there is small section on this topic. Couldn't tell you exactly where though. Another place to review is the perlstyle manpage. Your code is your own however. It just depends on whom will have to deal with it in the event you leave or give it away. That's 2cents for whatever it's worth. GL, Mark Bergeron' -Original Message- From: Stephan Tinnemeyer[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Sep 20 06:22:29 PDT 2001 Subject: structure of scripts (newbie Q) I hope I did not overread this in the FAQ: In some tutorials I found the recommendation to put the code for subroutines at the end of a script (i. e. after calling them) but it was never explained why I should do so. I only see disadvantages: 1. In my simple mind this would only make the interpreter jump through the script which should not enhance the performance. 2. Human beings have to jump through the script as well when they attempt to understand how the script is working. Can somebody give me a clue of the advantages of this structure? TIA Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . . .. .__ . , |\/| _.._.;_/ _.._ _| [__)._.* _| _ _ -+- | |(_][ | \ (_][ )(_] [__)[ |(_](_](/, | ._| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unless statement
I would go: unless ( ($x 50) || ($x 80) ){ print ; } of course you could use and, or you can only use and, or if your running at least Perl5 -Original Message- From: David Draley[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon Sep 17 14:36:06 PDT 2001 Subject: Unless statement how would I write an unless statement that is looking for the values inbetween two numbers? $x = STDIN; chomp $x; unless (50 $x 80) { print ; } else { other function } --- thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . . .. .__ . , |\/| _.._.;_/ _.._ _| [__)._.* _| _ _ -+- | |(_][ | \ (_][ )(_] [__)[ |(_](_](/, | ._| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: active perl on IIS
Let me also add, unlike *nix, you may run scripts from virtualy any folder you see fit on Win (within wwwroot for the web of course). Everything is really governed by the permissions and etc... you set on the folder itself. In some cases it makes sense to name the cgi folder something less obvious like, wordfiles, oldapps or the like. Be creative. This way should the casual hacker break in you stand a chance of he/ she skipping the directory. At the very least, someone is sniffing your tranfers might not suspect your moving them into an executable dir. Just a thought. MB' -Original Message- From: Lynn Glessner[EMAIL PROTECTED] To: yahoo[EMAIL PROTECTED], Begginers CGI[EMAIL PROTECTED] Date: Sun Sep 02 14:59:37 PDT 2001 Subject: Re: active perl on IIS I haven't had a chance to work on it recently, but I think it will turn out to be the .cgi extension (I'll have to go back and see who suggested that). I have my scripts in a directory which was created automatically called scripts a subdirecctory of c:\inetpub - IIS has it configured for executables. However, all my perl scripts in this directory have the extension .cgi. Double-clicking one of the example files installed by ActivePerl (those files have a .pl extension) executes fine, but my .cgi files have a generic icon - can't believe I didn't think to check that. I have the O'Reilly CGI book, with the rat/mouse on the cover, it is very helpful for CGI and Perl. I have the working version at work, it's just the implementation at home on IIS that I'm struggling with after doing my development at work. :( Thanks very much for the suggestions, I hope to be able to tackle this tonight (after my 2 year old goes to bed - she doesn't have much patience for programming yet!). From: yahoo [EMAIL PROTECTED] Date: Sun, 2 Sep 2001 18:28:47 +0100 To: [EMAIL PROTECTED] Subject: RE: active perl on IIS Hi Gunther, I think Lynn said she was looking for a book which covered IIS PerlScript - the OReilly win32 book is good for that (going hand-in-hand with ActiveStates latest documentation of course!). I don't think IIS normally pre-creates a cgi-bin for you - none of my installations have one (here is an excerpt from the IIS 5 documentation) extract To install and configure CGI applications: Set up a directory for your CGI programs. For extra security, you should separate your CGI programs from your content files. You do not need to name the directory Cgi-bin, although you can do so if you want. See Creating Virtual Directories. /extract As I said in my original email, you need to mark the directory as allowing scripting for executables inorder to get the .pl file to run. I agree with what you say about the file extension; I did mention the .pl extension in my original response. Lynn, any updates on this problem? regards Joel -Original Message- From: Gunther Birznieks [mailto:[EMAIL PROTECTED]] Sent: 02 September 2001 04:00 To: yahoo; [EMAIL PROTECTED] Subject: RE: active perl on IIS Joel, I could be wrong but based on the way Lynn describes the problem, it does not sound like she has a problem with Perl being installed as the PerlScript examples do work as she stated. Also, she should not have to create a cgi-bin. IIS has a pre-created cgi-bin typically. While I am a fan of OReilly, I am also not sure that Win32 Perl book from OReilly will help Lynn so much because it's about Perl first and foremost, CGI secondarily (not that much coverage), and I don't think it goes into server configs but I could be wrong. Anyway, I think what Lynn is describing sounds more like a file extension problem. ActiveState Perl does set up Perl for IIS if I remember correctly but it does it based on FILE EXTENSION. So an important factor here is that Lynn should figure out if her file extensions would run if she clicked on the script in Explorer. I would be interested to know what file extension she is using for her scripts. If her colleagues are on UNIX and writing web apps, it's highly likely that they might use .cgi as an extension? But ActiveState never sets up .cgi. It will set up .pl for Perl for example. I have a more detailed article on this topic located here: http://webcompare.internet.com/isapiperl/index.html With a page specific to providing hints for installing ActiveState Perl for IIS here. http://webcompare.internet.com/isapiperl/isapiperl_3.html Good Luck, Gunther At 08:23 PM 8/29/2001 +0100, yahoo wrote: Lynn, I've installed ActiveStates Perl a couple of times on Win 2K NT and each time, as part of the install, it allowed/prompted for the configuration of the ISAPI part which basically meant you can run perl as an active x scripting engine. SCRIPT LANGUAGE=perlscript runs fine then. I seem to remember that CGI still works fine and they had some sort of speedy up extra module to make it go faster - kinda like a mod_perl for IIS I suppose - anyway,
Re: active perl on IIS
This may help: http://www.wiley.com/legacy/compbooks/stein/source.html of course there are so many more. Mark Bergeron' -Original Message- From: Lynn Glessner[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Aug 29 11:37:49 PDT 2001 Subject: active perl on IIS Can anyone point me to a site or book with detailed information about configuring my W2K server IIS for perl and cgi? I have a form which I designed at work on Linux and Apache, and it works fine in that environment. I want to run it on my home W2K machine, but am baffled. My coworkers are no help because they all work on *nix machines. I installed activeperl and followed the configuration directions at the activeperl site but after clicking submit on my form I get the page cannot be displayed. The active perl example pages work correctly, but they have the perl script imbedded in the html page, unlike what I want to run which is a separate html file and perl script. I'm not expecting anyone in this group to walk me through it, unless you want to :), but can you point me to a helpful source? I did change the path in the form action tag, but there is probably something else simple I am forgetting in this port from unix to windows. On apache, I check error_log, is there an equivalent log file for W2K IIS? Thanks, Lynn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Beginning CGI
You can definetly run CGI's on IIS. Check out Active State http://www.activestate.com or Indigo Perl I think it's http://www.indigostar.com/indigoperl.htm GL, Mark -Original Message- From: Eric Wang[EMAIL PROTECTED] To: Mark Bergeron[EMAIL PROTECTED] Cc: kahine Kldon[EMAIL PROTECTED], [EMAIL PROTECTED] Date: Tue Aug 14 14:11:45 PDT 2001 Subject: Re: Beginning CGI Can you run CGI on IIS? sorry, I always thought you either need apache or httpd for unix/linux but if IIS can run CGI,it'll be great! eric On Tue, 14 Aug 2001, Mark Bergeron wrote: Well, it would really help if you could give us an example of what you want to do (-; Mark Bergeron' -Original Message- From: kahine Kldon[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Aug 14 05:39:16 PDT 2001 Subject: Beginning CGI Hi: I've just started in CGI programming. I'm actually working on an NT machine and I know in order to make the cgi work in an NT machine is different than in a Linux or UNIX machine. Is there some tips that could help me do it. Thank You kahine _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: CGI on IIS - bad idea?
This could be. When running under #!/usr/bin/perl -wT Too late for -T I'm running 626 on Win2K Pro IIS -Original Message- From: Curtis Poe[EMAIL PROTECTED] To: CGI Beginners[EMAIL PROTECTED] Date: Wed Aug 15 09:50:54 PDT 2001 Subject: Re: CGI on IIS - bad idea? --- Mark Bergeron [EMAIL PROTECTED] wrote: Taint won't run on Win32 anyway. Mark, This is actually a common misconception. Taint checking works just fine on Win32 using ActiveState Perl. Try the following from the command line: perl -Te $x=shift;open TEST, qq/$x/ test.txt You will get the following error message: Insecure dependency in open while running with -T switch at -e line 1. Taint checking is problematic on Win32 systems *usually* because of the way the programs are run. If you type perl somescript.pl and you have the -T switch on the shebang line, you will get the Too late for -T option at somescript.pl line 1. error. The easiest way to get around this is to explicitly pass the -T switch to the perl interpreter: perl -T somescript.pl If this doesn't work for you, what version of Perl are you using? Cheers, Curtis Poe = Senior Programmer Onsite! Technology (http://www.onsitetech.com/) Ovid on http://www.perlmonks.org/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Perl Editors
Nice tool. Veeey sloowww load times. Oh well. -Original Message- From: Joel Hughes[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Aug 08 11:35:56 PDT 2001 Subject: Re: Perl Editors I've used ActiveStates Komodo editor which is nice free joel -Original Message- From: Al Hospers [mailto:[EMAIL PROTECTED]] Sent: 08 August 2001 18:49 To: [EMAIL PROTECTED] Subject: RE: Perl Editors I'm assuming that what is meant by /compiling/ is really syntax checking... Al Hospers CamberSoft, Inc. alatcambersoftdotcom http://www.cambersoft.com A famous linguist once said: There is no language wherein a double positive can form a negative. YEAH, RIGHT -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending Mail with CGI on Windows server
Use Net::SMTP. You'll find it and supporting documentation on CPAN. -Original Message- From: James Boeck[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Jul 31 08:18:07 PDT 2001 Subject: Sending Mail with CGI on Windows server Hello All, I too am a newbie in the world of perl. I was wondering if any of you could explain to me how you send out mail from a CGI script when your server is a WinNT 4.0 or Win2k server. I figured it would be different since windows does not run sendmail. Thanks for the help, James H. Boeck _ Sign up for FREE web based email from UfieMail at http://ufie.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copy and past HTML into a perl script
You may want to try this: print Content-type: text/html\n\n; print EOF; html etc... /html EOF -Original Message- From: Tony Paterra[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri Jul 13 10:44:56 PDT 2001 Subject: Copy and past HTML into a perl script I have a cgi script that I need to past approx 40 lines of HTML into. I was hoping I could just get away with having a print paste HTML here; and get away with that but sadly no, I get incomplete set of headers errors. Any suggestions? Thanks, Tony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: FUCK THE FUCKUNG MAILBOT!!!!!!!!! I WANT OUT OF THIS FUCKINGLIST !!!!!!!!!!!!!!!!
Oh Yea! This guy is going places. -Original Message- From: Fco. Javier Valladolid Hdez.[EMAIL PROTECTED] To: Perl CGI[EMAIL PROTECTED] Date: Mon Jul 09 19:19:06 PDT 2001 Subject: Re: FUCK THE FUCKUNG MAILBOT! I WANT OUT OF THIS FUCKING LIST unsubscribe, no more insults please, this is a great mail list = Francisco Valladolid V Microsistemas Taking the Initiative! [EMAIL PROTECTED] - Original Message - From: Hendrik Bämpfer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 9:08 AM Subject: FUCK THE FUCKUNG MAILBOT! I WANT OUT OF THIS FUCKING LIST ** SOLDES GmbH Hendrik Bämpfer Bernd-Rosemeyer-Strasse 7 30880 Laatzen Fon: (05102) 9311-30 Fax: (05102) 9311-39 mailto:[EMAIL PROTECTED] ** _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Script written HTML won
Let me get this straight. You can see the source but not the HTML output in the browser? Mark Bergeron -Original Message- From: Samuel Brown[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Jul 10 10:20:57 PDT 2001 Subject: Script written HTML won't display Here's a wierd problem for the gurus: I've just set up a fresh install of Active State Perl on this Win2k box, and have written a quick test script for the web server. The script runs correctly from the command prompt, without reporting errors. The script runs for a web browser without reporting errors, likewise. I can 'view source' and see that it returned everything correctly, even. (Well, I can't see the header in the source, natch. But yes, i did make sure to include one; yes, one with TWO carriage returns.) The issue is that of the computers and web browsers I've tried to run this script from, none of them display the text! Netscape displays a portion of the first body character, and nothing else. IE doesn't even display that. Again, a 'view source' in either will show a perfectly mundanely formatted little block of HTML text. Because i try not to go whining to mailing lists, I have taken the time to read over a half dozen FAQs, and short of chasing down every 400 page book they cross reference, I think I've fulfilled the obligations of researching this one on my own before taking up you all's valuable time and bandwidth. Anybody with more experience than me know the answer to my little connundrum? S. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: Script written HTML won
Oh, no doubt. Sometimes it's something as minor as one unclosed tag. Netscape has been notorious for that. -Original Message- From: Bradley M. Handy[EMAIL PROTECTED] To: Mark Bergeron[EMAIL PROTECTED], Samuel Brown[EMAIL PROTECTED], [EMAIL PROTECTED] Date: Tue Jul 10 10:53:29 PDT 2001 Subject: Re: Script written HTML won It can happen. Generally the reason is an unclosed literal string somewhere in the HTML source. At least that's been my experience with that problem. Brad Handy --www.jack-of-all-trades.net [EMAIL PROTECTED] -Original Message- From: Mark Bergeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:48 PM To: Samuel Brown; [EMAIL PROTECTED] Subject: Re: Script written HTML won Let me get this straight. You can see the source but not the HTML output in the browser? Mark Bergeron -Original Message- From: Samuel Brown[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue Jul 10 10:20:57 PDT 2001 Subject: Script written HTML won't display Here's a wierd problem for the gurus: I've just set up a fresh install of Active State Perl on this Win2k box, and have written a quick test script for the web server. The script runs correctly from the command prompt, without reporting errors. The script runs for a web browser without reporting errors, likewise. I can 'view source' and see that it returned everything correctly, even. (Well, I can't see the header in the source, natch. But yes, i did make sure to include one; yes, one with TWO carriage returns.) The issue is that of the computers and web browsers I've tried to run this script from, none of them display the text! Netscape displays a portion of the first body character, and nothing else. IE doesn't even display that. Again, a 'view source' in either will show a perfectly mundanely formatted little block of HTML text. Because i try not to go whining to mailing lists, I have taken the time to read over a half dozen FAQs, and short of chasing down every 400 page book they cross reference, I think I've fulfilled the obligations of researching this one on my own before taking up you all's valuable time and bandwidth. Anybody with more experience than me know the answer to my little connundrum? S. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: newbie question
Is your directory set to scripts access? -Original Message- From: nila devaraj[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri Jul 06 02:24:31 PDT 2001 Subject: newbie question Hi i have a webserver that has been configured for CGI scripting. i placed the HTML file in the required directory and the cgi program in the wincgi directory of the webserver. The problem i am facing is- if i submit my form i am getting the download/save dialog box.If i say open it is opening a word document containg the codes in the program i am new to CGi programming and i am unable to figure out the problem. it would be appreciated if i get some input in this regard... regards Nila __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: how to write in access database
If you are going to move in the direction of database programming, the best place to start would be with Programming the Perl DBI (the Cheetah book). It was invaluable to me when first starting out in the dB/ Perl direction. Here is the link to the book on the Barnes and Nobles site. Check it out: http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=2U41UY7CK7mscssid=5K472W9Q2Q759GC6JBK66SG117N4FVLDisbn=1565926994 it will serve you well. GL, Mark Bergeron -Original Message- From: Wilfried Mouquot[EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Fri Jul 06 11:46:14 PDT 2001 Subject: Re: how to write in access database Hi QU As a matter of fact, if you are using your script Perl on Windows, you should use with the DBI (DataBase Independent) the driver DBD::ODBC. If not, you could use (under Linux for example) the Sybase driver which works also with a SQLServer database. DBD is obviously for DataBase Dependent. Good luck. Hi, Qu I haven't tried it with Access, but have a look at DBI which is an abstract database access layer that uses lower level drivers. I would imagine you'd need the DBD::OBDC driver. They're available from CPAN at http://search.cpan.org Gary On Thursday 05 July 2001 6:56 pm, qing wang wrote: Hi, anyone know how to write in access database using script? Thanks for any information. Qu ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: Configuring cgi scripts on Windows2000
Back from vacation only a day and already I feel the love in this place (-8 -Original Message- From: Brett W. McCoy[EMAIL PROTECTED] To: Greg Jetter[EMAIL PROTECTED] Cc: Steve Howard[EMAIL PROTECTED], RL Autry[EMAIL PROTECTED], [EMAIL PROTECTED] Date: Thu Jul 05 09:57:09 PDT 2001 Subject: Re: Configuring cgi scripts on Windows2000 On Thu, 5 Jul 2001, Greg Jetter wrote: My stance on O/S's is use which ever one does the job your trying to accomplish. Same with Scripting langauages or hardware. Just what is your problem bud ? Instead of attacking me why don't you sugest how this problem might be resolved ? do you realy know any thing other than how to start a flame war ? Regardless, some people may not have a choice as to what OS they have to develop on. Answering a question about a programming question with Switch to such-and-such-OS because the one you are using is crap is almost as bad as saying RTFM. -- Brett http://www.chapelperilous.net/btfwk/ Q: What is the sound of one cat napping? A: Mu. /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: how to write in access database
What kind of script? -Original Message- From: qing wang[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Jul 05 10:56:43 PDT 2001 Subject: how to write in access database Hi, anyone know how to write in access database using script? Thanks for any information. Qu ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Opening HTML file from PERL
If you paste a little code into your email we may be able to give you better advice. The most common way though would be to use a here document inside of the script like so: if (your_condition eq 'T'){ print EOF; Content-type: text/html html head titleYour Page/title /head body bgcolor=#ff etc... other HTML here /body /html EOF } else { do something else } you get the picture. GL, Mark Bergeron -Original Message- From: Srinivasan Kannan[EMAIL PROTECTED] To: CGI[EMAIL PROTECTED] Date: Thu Jul 05 12:14:47 PDT 2001 Subject: Opening HTML file from PERL Hai Everybody Iam new user to PERL and Iam now doing a small project. In my project, HTML form values such as username and password are validated in a Perl file and depending upon the validation result, I'll be dispalying a new HTML file. My doubt is How to display a HTML file from a IF loop in a PERL file. From Srinivasan /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: 500 Internal Server Error
I really might help if you share a little code with the group. Just paste some into your email. Mark Bergeron -Original Message- From: Paul Burkett[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon Jun 25 12:59:08 PDT 2001 Subject: 500 Internal Server Error Everything I try I get the same error! I've tried using 'use CGI' but still nothing. I found a command that works it's called HTTP Command 204 but how do I implement this into the script? And where do I put the Content: line in? /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: Some Advice plz :))
Oh boy... here we go! This should fire up some creativity. This first book should be the Random House Dictionary of the English Language (-; Followed by the Llama book. Followed by a great list of resources for solving this type of problem easily. my 2 cents early, Mark Bergeron -Original Message- From: Chris Mulcahy[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed Jun 27 08:21:46 PDT 2001 Subject: Re: Some Advice plz :)) Wow, your response to Mr. Smolarek was a bit harsh, even though is response to you was harsh as well. Hmm Anyway, you'll have to read each line in and parse it and write it out, modifying the appropriate line. You already have the parsing done or you'd not be able to send the confirmation and search for lost passwords. You read each line, parse it, inspect it to see if it is the appropriate line to modify and modify it accordingly, then write it out to a temp file. Keep doing that until you've gone through all of the lines, then remove the original file and move the temp file into its place. hth Chris -Original Message- From: RDWest Sr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 9:12 AM To: [EMAIL PROTECTED] Subject: Some Advice plz :)) hi yall, yup, i'm an old country boy... loli'm strugling here to learn perl on my own and with help from(maybe yall)lol so plz bare with me... i need some advice on an issue here... i'm creating, well trying to create, a ranking system for my online pals... i've accomplished user signup, print info to flatfile database... send confirmation of account and a search for lost userid and pwd... now, i got to thinking... if say a user wants to update their info( change pwd, name, etc...)i'm just completely lost here... does anyone have a good explanation or some code snippets i can look at? tx again RD Sr. /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: Unsubscribing
You boys are all going to have to figure this one out. Consider it a learning experience. -Original Message- From: Lucy[EMAIL PROTECTED] To: Cochrane, Paul[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue Jun 26 03:58:03 PDT 2001 Subject: Re: Unsubscribing I have no idea why everyone is finding it so hard to unsubscribe. :) I have tried it once again, and had no problems. 1) send email to [EMAIL PROTECTED] (yes, substituting username-somewhere.com from your real address) =) 2) you will receive an email with the subject confirm unsubscribe from [EMAIL PROTECTED] 3) send a blank email to the *address specified* in the email. The relevant part of the email should look something like this:- paste To confirm that you would like [EMAIL PROTECTED] removed from the beginners-cgi mailing list, please send an empty reply to this address: [EMAIL PROTECTED] /paste It should also be the address in the Reply-to header, make sure your mail client uses this reply-to header or alternately paste the email adress into your mail client. There is a clickable mailto link if your client utilises html links too. Send a blank email to this address. 4) Receive the email entitled GOODBYE from [EMAIL PROTECTED] and you are unsubscribed. Can anyone still having problems please point out at which stage the unsubscribe process is going wrong for you? We'll try and get it sorted once and for all. ;-) With more detail of where the problem is, perhaps we can change the info on learn.perl.org or make the instructions in the WELCOME to [EMAIL PROTECTED] email clearer. --lucy on 26.06.01, Cochrane, Paul wrote Me too. Please will someone remove me from this list? -Original Message- From: Derek Harding [mailto:[EMAIL PROTECTED]] Sent: 26 June 2001 10:26 To: [EMAIL PROTECTED] Subject: Unsubscribing In company with Bernhard and others I am having immense problems getting myself unsubscribed. On one hand I get automated mail telling me to reply, which I duly do, then it tells me I'm not subscribed but clearly, I am! Dare I suggest that this part of the service is broken? PLEASE take me off the list!!! -- Best wishes, Derek Harding, (BA MIAP) ICT Network Manager [EMAIL PROTECTED] / -- .--. /* * * *\ :_.-:`:-._; [EMAIL PROTECTED] (_) http://triffid.org _\|/(_)\|/ /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: CGI Return
What type of OS are you running? What type of cam? Do they have web plug-in type technology of sorts? What's the webpage suppose to return? Let us know. Mark' -Original Message- From: Paul Burkett[EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri Jun 22 15:04:21 PDT 2001 Subject: CGI Return Hi, I created a script from perl and changed it into a cgi web script. Right now I use the stdin command and it seems to work when I click a from button that submits the value to the script. See, it's supposed to change the position on the webcam and it works fine, but still returns with a Internal Server Error. Is there anyway to make it so that it wont't try to return to a webpage and just sumbit the value. /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com
Re: Re: error message
Or maybe you could write a simple sub that catches any anomolies at run time and produces an Error message of your choosing. There is a good example of this in Chap. 5 of CGI Programming with Perl. You can also find the example from the chapter here: http://examples.oreilly.com/cgi2/ Good Luck, Mark Bergeron -Original Message- From: Geraint Jones[EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue Jun 12 08:23:21 PDT 2001 Subject: Re: error message Try putting the following at the beginning of your script, it helps a lot with debugging CGI: use CGI::Carp qw/fatalsToBrowser/; Instead of getting the usual Internal Server error, it displays the error in your browser. Of course, make sure you have CGI first. /~_. _ | _ _ _ _ \_/|(_||| | |(_)| | _| ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com