beginner's addressbook tutorial - step 5 - Adding the start method and our first HTML::Template file

2001-06-14 Thread fliptop
step 5 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step5.html coming next - step 6 - Writing the utility and SQL classes, and using Class::MethodMaker

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: > > I tried the perl -v but get an Internal Server Error msg - no numbers > nor anything else useful. here's what i get: $ perl -v This is perl, v5.6.0 built for i686-linux Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic Li

Re: CGI.pm install

2001-06-14 Thread WebMaster AIM-US
If, for some reason, CGI.pm is not installed on the server, I believe you can place it in the folder where you are going to run the script (i.e your cgi-bin. That may pose some security issues I'm not aware of, but if all else fails ... Stephen

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: > > I need help installing CGI.pm module through ftp. cgi.pm is part of the standard perl installation. does the box you're developing on have a recent installation of perl? you can find out the version by typing 'perl -v' at a command prompt.

browser attachment

2001-06-14 Thread Teresa Raymond
I would like to write a script that allows advertisers to send their ads via their browser. I don't even know where to begin on this one. My preliminary questions are: 1. Do I need to set parameters regarding what file types they are sending? What sort of parameters? 2. Do I need to set pa

Directory Structure under Win32 (Perl, CGI, Apache, MySQL)

2001-06-14 Thread Frank J. Schmuck
Is there a "correct" directory structure under WinX when installing Perl and Apache for development and testing of cgi scripts? I know that perl looks for cgi scripts in the cgi-bin directory, but what about everything else? Thanks Frank

CGI.pm install

2001-06-14 Thread Teresa Raymond
I need help installing CGI.pm module through ftp. First of all, I don't understand how I can where I write the below commands. I am at home and the server is on campus. I tested a CGI.pm script to see if it was installed, it may be but my cgi priveleges do not seem to allow me access. So, (

Re: browser attachment

2001-06-14 Thread Curtis Poe
> To limit the size of uploads, set $CGI::POST_MAX to the number of bytes per upload. Forgot to mention that you must set that variable *before* you instantiate a CGI object (or use any of CGI's functions, if using the functional interface). Just put it right after 'use CGI' and you'll be fine

Re: browser attachment

2001-06-14 Thread Curtis Poe
--- Teresa Raymond <[EMAIL PROTECTED]> wrote: > I would like to write a script that allows advertisers to send their > ads via their browser. I don't even know where to begin on this one. > My preliminary questions are: > > 1. Do I need to set parameters regarding what file types they are >

Re: So what am I doing incorrectly??

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Luinrandir Hernson wrote: > srand; > $A = int (rand (4)) ^^^ Need a semi-colon > if ($A eq '0') {print "\n"}; > if ($A eq '1') {print "\n"}; > if ($A eq '2') {print "\n"}; > if ($A eq '3') {print "\n"}; The semi-colons here should be inside the block, n

Re: postgres schema

2001-06-14 Thread fliptop
[reply cc:'d to the list] Kalamity Force wrote: > > i have a real postgres newbie question. can you instruct me on how to > implement this schema. I know that I have to put this text into a file, > but how am I executing the script? create the db by typing at a command line: $createdb addressb

Re: So what am I doing incorrectly??

2001-06-14 Thread Curtis Poe
--- Luinrandir Hernson <[EMAIL PROTECTED]> wrote: > srand; > $A = int (rand (4)) > if ($A eq '0') {print "\n"}; > if ($A eq '1') {print "\n"}; > if ($A eq '2') {print "\n"}; > if ($A eq '3') {print "\n"}; In addition to previous comments: 1. Perl no longer requires that you call srand before ra

Re: So what am I doing incorrectly??

2001-06-14 Thread Timothy Kimball
Luinrandir Hernson wrote: : srand; : $A = int (rand (4)) : if ($A eq '0') {print "\n"}; : if ($A eq '1') {print "\n"}; : if ($A eq '2') {print "\n"}; : if ($A eq '3') {print "\n"}; Need a semicolon after the second line. When I add that, it works fine for me. -- tdk

RE: So what am I doing incorrectly??

2001-06-14 Thread Greg Smith
Try: $A == 0 eq is for string comparisons and $A contains an integer. Greg S. Greg S. > -Original Message- > From: Luinrandir Hernson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 14, 2001 3:10 PM > To: [EMAIL PROTECTED] > Subject: So what am I doing incorrectly?? > > > s

Re: quoted text in a perl form text field problem...

2001-06-14 Thread scott lutz
You could search out the "quotes" and replace with "nothing" $input =~ s/\"//; _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

So what am I doing incorrectly??

2001-06-14 Thread Luinrandir Hernson
srand; $A = int (rand (4)) if ($A eq '0') {print "\n"}; if ($A eq '1') {print "\n"}; if ($A eq '2') {print "\n"}; if ($A eq '3') {print "\n"};

RE: string question

2001-06-14 Thread Camilo Gonzalez
Dude, Try @shortenedwords = split (/\/action/, @webaddress,1); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: string question I am receiveing these long website addresses and I want to shorten t

RE: string question

2001-06-14 Thread Stout, Joel R
I would normally not post a suggestion being still fairly new to perl, but I just wrote a snippet that addresses this situation. As you can tell I do better at splits than regexs: $_ = "http://www.website.net/action.lasso?-database=Links_Engine";; my @split = split (/\//); $finish = $split[0]."

Re: string question

2001-06-14 Thread Curtis Poe
--- Luinrandir Hernson <[EMAIL PROTECTED]> wrote: > I am receiveing these long website addresses and I want to shorten them after a >certain symbol > like a question mark or a word like "/action". Is there an easy way to do that? > > EX: > http://www.website.net/action.lasso?-database=Links_Engi

string question

2001-06-14 Thread Luinrandir Hernson
I am receiveing these long website addresses and I want to shorten them after a certain symbol like a question mark or a word like "/action". Is there an easy way to do that? EX: http://www.website.net/action.lasso?-database=Links_Engine TO: http://www.website.net/action.lasso OR EVEN http://w

Re: Telnet

2001-06-14 Thread Mel Matsuoka
At 02:38 PM 06/14/2001 -0400, Brett W. McCoy wrote: >On Thu, 14 Jun 2001, Mel Matsuoka wrote: > >> IMO, telnet *should* be considered "defunct", except when using it for >> debugging and diagnostic purposes (i.e. telnetting directly to service >> ports). If you (or your server admin) aren't using

Re: quoted text in a perl form text field problem...

2001-06-14 Thread Evgeny Goldin (aka Genie)
I was using the following : $event =~ s/\'/\\\'/g; push @sth, "insert into $table values ( '$event', .. )"; ( every element of @sth was executed later ) This allows me to insert values having both ' and "

Re: Telnet

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Mel Matsuoka wrote: > IMO, telnet *should* be considered "defunct", except when using it for > debugging and diagnostic purposes (i.e. telnetting directly to service > ports). If you (or your server admin) aren't using SSH, it's about high > time that you should, for security

Re: Telnet

2001-06-14 Thread Mel Matsuoka
At 01:59 PM 06/14/2001 -0400, Brett W. McCoy wrote: > >PuTTY is another decent Telent/SSH client, and provides a lot of decent >xterm functionality, including mouse clipbaord support. > Let me chime in to endorse PuTTY as well. It's a fantastic, fast and free (with no strings attached) telnet/ss

Re: Re: Weekly list FAQ posting

2001-06-14 Thread Mark Bergeron
I don't think so. My other list are coming in fine. Does the list message contain [EMAIL PROTECTED] in the To: Mark Bergeron -Original Message- From: "Casey West"<[EMAIL PROTECTED]> To: "Mark Bergeron"<[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Date: Thu Jun 14 09:53:23 PDT 2001 Subject:

Re: Telnet

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, fliptop wrote: > > Are you assuming I'm running from unix? I'm not I run on windows > > http://hp.vector.co.jp/authors/VA002416/teraterm.html > > here you'll find a program called tera term pro, which is free and runs > on windows. there's also an extension that allows ssh s

Re: Weekly list FAQ posting

2001-06-14 Thread Casey West
On Thu, Jun 14, 2001 at 10:46:56AM -0700, Mark Bergeron wrote: : Has this list had postings yet? I don't seem to be receiving any I think. Yes, quite a bit of traffic, actually. If you recieved this FAQ posting, you are getting mail from the list. Is something weird happening with your mail cli

RE: Telnet

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Sally wrote: > Are you assuming I'm running from unix? I'm not I run on windows Telnet has been available on Windows since Windows 95, and you can do these exact same things of things. -- Brett http://www.chapelperilous.net/btfwk/

Re: Weekly list FAQ posting

2001-06-14 Thread Mark Bergeron
Has this list had postings yet? I don't seem to be receiving any I think. Mark Bergeron -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu Jun 14 09:35:06 PDT 2001 Subject: Weekly list FAQ posting >NAME >beginners-faq - FAQ for the beginners-cgi mailing list

Weekly list FAQ posting

2001-06-14 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

Re: Telnet

2001-06-14 Thread fliptop
Sally wrote: > > Are you assuming I'm running from unix? I'm not I run on windows http://hp.vector.co.jp/authors/VA002416/teraterm.html here you'll find a program called tera term pro, which is free and runs on windows. there's also an extension that allows ssh sessions. this application is m

Re: beginner's addressbook tutorial - level of presentation

2001-06-14 Thread fliptop
Roger C Haslock wrote: > > I find the general level of detail here a bit advanced for a 'beginner'. i was wondering whether this would be the case. some readers told me they thought it wasn't too advanced, but obviously you feel otherwise. anyone else care to comment on this issue? is the tut

RE: calling a external cgi from a form passing parameters

2001-06-14 Thread Kris Cook
Can we see your updated form code? I've fixed the problems curtis described below in a copy here, and called a perl script that just accepts the params and prints them, and it works fine. It may be a misplaced operation, that would be obvious to a new pair of eyes (hey, I can never see MY bugs:

Re: calling a external cgi from a form passing parameters

2001-06-14 Thread Curtis Poe
--- Abel Lucano <[EMAIL PROTECTED]> wrote: > > my $uri_chars = '\x00-\x29\x2b\x2c\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\xff'; > > Good points Curtis and thanks for your answers; I've applied (and > understood) all your advices but when I fill the forms with valid entries, > the submit is still passing

Re: calling a external cgi from a form passing parameters

2001-06-14 Thread Abel Lucano
On Wed, 13 Jun 2001, Curtis Poe wrote: > > There are a few problems with your script. > > First, as mentioned earlier, Perl will not interpret values in strings in single >quotes. You'll > need double quotes. > > Second, you have not assigned values to those variables (lines 17 and 18) until

RE: Telnet

2001-06-14 Thread Wilson, Tom
You can run telnet from a DOS prompt by entering telnet on the command line. Regards, Tom Wilson -Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 11:51 AM To: Timothy Kimball; [EMAIL PROTECTED] Subject: RE: Telnet Are you assuming I'm running fr

RE: Telnet

2001-06-14 Thread Timothy Kimball
Sally wrote: : Are you assuming I'm running from unix? I'm not I run on windows I just tried it under Windows 2000 and it worked for me. -- tdk

Re: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-14 Thread Curtis Poe
--- fliptop <[EMAIL PROTECTED]> wrote: > > That's *almost* correct. CGI.pm also states the "charset" that the document is to >be rendered > > with: > > > > C:\>perl -MCGI -e "$q=CGI->new;print $q->header" > > Content-Type: text/html; charset=ISO-8859-1 > > well, as you'll see in the ne

RE: Telnet

2001-06-14 Thread Sally
Are you assuming I'm running from unix? I'm not I run on windows -Original Message- From: Timothy Kimball [mailto:[EMAIL PROTECTED]] Sent: 14 June 2001 16:46 To: [EMAIL PROTECTED] Subject: Re: Telnet Derek Harding wrote: : ... I'm not : sure that telnet is defunct, though. Is it? No,

Re: Telnet

2001-06-14 Thread Timothy Kimball
Derek Harding wrote: : ... I'm not : sure that telnet is defunct, though. Is it? No, it's not. "Defunct" means it no longer exists. Telnet is very definitely alive and well. Though it is insecure for general communications, since it talks directly to any port, it's very handy for debugging web

RE: javascript within print "<

2001-06-14 Thread Tillema, Glenn
> The CGI module is not supposed to export any functions > without their being explicitly requested. > Maybe you have a version that someone else hacked? No matter. I honestly wouldn't know .. all of the functionality seems to be there. > > > Also, since you are already using CGI.pm, why not

Re: Telnet

2001-06-14 Thread Derek Harding
What Javier says is very true about using ssh but if something happens to lock up at the remote computer it can be hard to get out with ssh without resorting to killing processes whereas, if the network is secure from peeking, one can end a telnet session with the "Ctrl-]" combination. I'm not

RE:Telnet

2001-06-14 Thread Fco. Javier Valladolid Hdez.
Hi. Telnet is a Character based terminal program, you can accessed a remote terminal from your PC with your IP, ... I'm believe that Telnet is now defunct , best use SSH, is a similar program, but it is encrypted, as it provides best security... Excuse, my english is not very good! - Origi

Re: beginner's addressbook tutorial - level of presentation

2001-06-14 Thread Roger C Haslock
Ladies and Gentlemen I find the general level of detail here a bit advanced for a 'beginner'. My mind whirls with questions such as 'Why "our $variable"?' 'Why "class"?' 'Why not CGI.pm?' Can the presentation not be simplified so that we see the solution to the primary problem first, and then

RE: mystery

2001-06-14 Thread Sally
It wasn't uploaded as a dos file, I've scrapped all references to the offending piece of code now, but thanks for the suggestion -Original Message- From: Roger C Haslock [mailto:[EMAIL PROTECTED]] Sent: 14 June 2001 15:23 To: Sally; perlcgi Subject: Re: mystery Sally Possibly you uploa

Re: mystery

2001-06-14 Thread Roger C Haslock
Sally Possibly you uploaded it as a DOS file. Delete what you have uploaded, and upload it again, in binary. If that makes no difference, possibly you got it as a DOS file, in which case it will have to be cleaned of pairs. Something else you might try is editing the first line from #!/.../per

RE: random graphix generator

2001-06-14 Thread mark crowe (JIC)
OK, so you know about srand, after that the Perl command is pretty easy. $A = int (rand (NUMBER)) This generates a random integer between 0 and NUMBER, including 0 but not including number - e.g int (rand (5)) will give 0, 1, 2, 3 or 4. 'rand' generates a random number up to the value defined b

Re: Telnet

2001-06-14 Thread Jean-Marc Y. Imbert
OK, just to make it some clearer :-) for those who did not find it most readable, sorry for being native french speaker. FTP stands for File Transfer Protocol. A protocol is like a language, more or less a set of rules that defines the way two ore more computers exchange data using a network. On

random graphix generator

2001-06-14 Thread Luinrandir Hernson
Perhaps someone can give me a siple line in basic the rnd (random) Command goes something like this $A=fix(rnd*10) (the "fix" drops everything right of the decimal point. results in nnumber 0 to 9) what is it in perl? I've looked at perldoc.org, no luck and at the perldocs -f rnd... no luck what i

RE: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-14 Thread Kris Cook
Personally, when I'm writing for others (particularly beginners, like here in the tutorial), I prefer to use the print statement as the author did, or a heredoc. It's explicit and obvious, and the reader can see precisely what is to be generated. I have been known, instead, to use the functions,

Re: Telnet

2001-06-14 Thread Jean-Marc Y. Imbert
Hi Sally Telnet is a tcp/ip based terminal emulation program. You can open a session on remote hosts and perform actions directly as would you sit in front of the machine working with a console window. Ftp (file transfer protocol) is just one of the dozens of protocols that exist in the tcp/ip pr

Telnet

2001-06-14 Thread Sally
I've seen lots of references to telnet, but I can't find an explanation of what it actually is. Is it similar to FTP?

Re: quoted text in a perl form text field problem...

2001-06-14 Thread fliptop
David Draley wrote: > > I have a perl form that records to a MySql database. Every time someone > uses the form and enters “quoted text” in a text box or text area the record > is not sent. Is there a way to allow “quoted text” to be processed? Any > recommendations? use placeholders. ie.-

quoted text in a perl form text field problem...

2001-06-14 Thread David Draley
I have a perl form that records to a MySql database. Every time someone uses the form and enters “quoted text” in a text box or text area the record is not sent. Is there a way to allow “quoted text” to be processed? Any recommendations? Thanks in advance David

FW: mystery

2001-06-14 Thread Sally
-Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: 14 June 2001 09:54 To: perl Subject: mystery I got the following code from a tutorial. When I uploaded (FTP) it as a perl file I got more errors than you could shake a stick at. When I uploaded it as an html file it sort o