Re: HTML::Parser

2001-06-15 Thread James Drane
Thanks Tim, This information is right on point. I am currently having problems with io::tty. I is giving me the same error as the error I received a long time ago: language option compiler not present of something of the sort. What am I doing wrong. Please help. James Drane - Original M

Re: cgi execution problem

2001-06-15 Thread Hakan Aksu
Redhat 7.1 runs httpd as user and group "apache" and not nobody! -hkn Boex,Matthew W. wrote: >I am running redhat 7.1, apache 1-3.19 > >My cgi's won't execute unless I run them with read, write, and execute >perm's for user, group, and other. What gives? When I su to nobody, the >owner o

RE: How to generate a table ?

2001-06-15 Thread Curtis Poe
Heh. I keep saying 'factor out common elements', but I didn't bother to do it in my snippet :) --- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote: > #!/usr/local/bin/perl -w > > use CGI qw/:standard *table/; > > $cust_id = "cust"; > $acct = "account"; > $title = "title"; > > %hofEntries = (1 =>

RE: How to generate a table ?

2001-06-15 Thread Tillema, Glenn
#!/usr/local/bin/perl -w use CGI qw/:standard *table/; $cust_id = "cust"; $acct = "account"; $title = "title"; %hofEntries = (1 => {label => "Customer Id", name => "NEWCUST_ID", def => $cust_id, size => "10",}, 2 =>

Extracting data from a web page

2001-06-15 Thread Craig Westerman
Microsoft Excel has the ability to import data via a web query. If I create a query and run it on the following URL, a table with stock price information will be displayed on an Excel worksheet. http://finance.yahoo.com/q?s=%5EIXIC+%5EDJI+RHAT++&d=v1 If I run the query again the next day the data

RE: How to generate a table ?

2001-06-15 Thread Tillema, Glenn
> -Original Message- > From: Curtis Poe [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 6:00 PM > To: [EMAIL PROTECTED] > Subject: RE: How to generate a table ? > > > Heh. I keep saying 'factor out common elements', but I > didn't bother to do it in my snippet :) > Curtis,

Re: How to generate a table ?

2001-06-15 Thread Curtis Poe
--- "Moon, John" <[EMAIL PROTECTED]> wrote: > Could someone please suggest a "simpler" way to generate this table ... [snip] Without going into the usual "use CGI.pm's HTML shortcuts" argument, I'd say they are cleaner, once you get used to them. The following only took me a couple of minutes t

How to generate a table ?

2001-06-15 Thread Moon, John
Could someone please suggest a "simpler" way to generate this table ... print '', '', '', 'Customer Id : ', '', '', $q->textfield(-name=>'NEWCUST_ID', -default=>$cust_id,-size=>10, -maxlength=>10), '', "\n", '', '',

cgi execution problem

2001-06-15 Thread Boex,Matthew W.
I am running redhat 7.1, apache 1-3.19 My cgi's won't execute unless I run them with read, write, and execute perm's for user, group, and other. What gives? When I su to nobody, the owner of those files, I can run them at the command line ( with 700 perms ). I know I have run them before with

Re: Something wrong with my one line code

2001-06-15 Thread Brett W. McCoy
On Fri, 15 Jun 2001, Luinrandir Hernson wrote: > This line of code in a perl script comes up with errors. > What am I missing? problems with the word print? > Am I missing a "/" somewhere for a reserved word? maybe the 2nd "Print"? > > print " onClick=\"parent.main.print()\">\n; You are missing

Re: beginner's addressbook tutorial - level of presentation

2001-06-15 Thread fliptop
Roger C Haslock wrote: > > The thoughts behind my questions included the following > > 'Why "our $variable"?' > > I looked at the 'our' variables. It seemed to me that they should be local > to the enclosing module: only the database connect/disconnect subroutine > names need be exported. Certa

Re: beginner's addressbook tutorial - level of presentation

2001-06-15 Thread Roger C Haslock
The thoughts behind my questions included the following 'Why "our $variable"?' I looked at the 'our' variables. It seemed to me that they should be local to the enclosing module: only the database connect/disconnect subroutine names need be exported. Certainly it seems unwise to write code which

Re: binaries of DBI, DBD::mysql, CGI

2001-06-15 Thread Roger C Haslock
MySQL, Apache and Perl are all available for Windows. I do a fair amount of such stuff on Windows (but don't tell my Linux freinds). You shouldn't need a C compiler, but I too would like to know of a free/shareware one; I last used Topspeed under DOS. - Roger - - Original Message - From:

Re: php -> perl

2001-06-15 Thread Curtis Poe
--- William McKee <[EMAIL PROTECTED]> wrote: > To do it manually, use the following and set $mime_type to whatever > value you want (see W3C website for complete list): > print "Content-type: $mime_type\n"; With all due respect, your print statement is why I recommend to people that they shoul

Re: Something wrong with my one line code

2001-06-15 Thread David Labatte
Timothy Kimball wrote: > Luinrandir Hernson wrote: > : This line of code in a perl script comes up with errors. > : ... > : print "onClick=\"parent.main.print()\">\n; > > Needs a closing quote after the \n. -- tdk I'm jumping into the middle of a thread here, but for readability why not try some

RE: Something wrong with my one line code

2001-06-15 Thread Chris Mulcahy
Crazy reply sending directly to the originator... grr... Sent privately (thanks to reply-to:) as well as to the list. Sorry, Luinrandir. -- Well, there's no ending quote between \n and ;. What's the error message? Is this an exact copy and paste? This looks fine other than the ending quote

Re: Something wrong with my one line code

2001-06-15 Thread Timothy Kimball
Luinrandir Hernson wrote: : This line of code in a perl script comes up with errors. : ... : print "\n; Needs a closing quote after the \n. -- tdk

RE: Something wrong with my one line code

2001-06-15 Thread Greg Smith
Missing the " at the end of the line Try this: print "\n"; Greg S. > -Original Message- > From: Luinrandir Hernson [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 11:02 AM > To: [EMAIL PROTECTED] > Subject: Something wrong with my one line code > > > This line of code in a per

Re: HTML::Parser

2001-06-15 Thread Timothy Kimball
Jim J Wigginton wrote: : I'm trying to run a script which uses the HTML-Parser-3.25 scripts, and : every time, I get this error: : Can't locate loadable object for module HTML::Parser in @INC. : The file Parser.pm is in the @INC directory, and the lib directory within : the tar file is in the @IN

Something wrong with my one line code

2001-06-15 Thread Luinrandir Hernson
This line of code in a perl script comes up with errors. What am I missing? problems with the word print? Am I missing a "/" somewhere for a reserved word? maybe the 2nd "Print"? print "\n;

Re: php -> perl

2001-06-15 Thread William McKee
Michael, To change the MIME type being sent from a Perl script, if you are using CGI.pm, just add the -type parameter. For example: print header( -type=>'application/octet-stream' ); I wrote a script that would begin a download by using the Content- Disposition header. However, I had to manuall

Re: binaries of DBI, DBD::mysql, CGI

2001-06-15 Thread Christopher Zukowski
Use the ActiveState modules. They have a nifty Perl Package Manager (PPM) that allows very simple installation. I have been using DBI into Oracle (on Unix machines) and MS SQL for over 2 years now and all have worked fairly flawlessly. -Chris At 09:15 AM 6/15/2001, Georg Lange wrote: >Hello li

HTML::Parser

2001-06-15 Thread Jim J Wigginton
I'm trying to run a script which uses the HTML-Parser-3.25 scripts, and every time, I get this error: Can't locate loadable object for module HTML::Parser in @INC. The file Parser.pm is in the @INC directory, and the lib directory within the tar file is in the @INC directory, also. So... Can anyo

binaries of DBI, DBD::mysql, CGI

2001-06-15 Thread Georg Lange
Hello list, maybe this is a bit off-topic, sorry! I would like to create something like a "database-driven-website" based on MySQL, Apache and Well I did something based on PHP as link between HTML and the Database. Now I want to use Perl as language that does the cgi-stuff. I know, I ought

Re: regex question

2001-06-15 Thread Timothy Kimball
Robert Watterson wrote: : I have a line that has each field separated by commas. However, some of : individual fields are double quoted strings and also have embedded commas in : them. The Text::CSV_XS module will handle this. -- tdk

regex question

2001-06-15 Thread Robert Watterson
Hi all, I have a line that has each field separated by commas. However, some of individual fields are double quoted strings and also have embedded commas in them. for example: Value1,"Value2, blah,blah,blah",Value3,"Value4,blah",Value5 When I use the split function using the split pattern of /

RE: Telnet

2001-06-15 Thread Crowder, Rod
telnet is not defunct, but is a very basic connection. Normally, connecting to a unix or other multi-user system, you will have to login/logon with a name and password in reply to prompts. Usually it comes with a built in terminal emulator, mostly ansi or vt100, you can get other flavours like IBM

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

2001-06-15 Thread Scott Thompson
> -Original Message- > From: Frank J. Schmuck [mailto:[EMAIL PROTECTED]] > Subject: Directory Structure under Win32 (Perl, CGI, Apache, MySQL) > > Is there a "correct" directory structure under WinX when > installing Perl and > Apache for development and testing of cgi scripts? I know tha

A problem with variables in IF conditions.

2001-06-15 Thread Grierson, Garry (UK07)
The following simple piece of code works fine as it is but looks very messy compared to how it can be done in other languages. I first tried to write it as two simple if statements and one lump of formatting code, but the values generated within the if statements were not recognized outside the if

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

2001-06-15 Thread Aaron Craig
As long as Apache and Perl know where to look for the stuff they want, anything can be correct. The important thing is that Perl is in your path -- the famous shebang line doesn't matter on a Win32 platform (though I use it for various switches) and that you have your Apache httpd config file

RE: So what am I doing incorrectly??

2001-06-15 Thread Grierson, Garry (UK07)
You are returning an INTEGER (whole number) to $A and then trying to find character values in your IF statements, change theme to if($A = 0){blablabla}; > -- > From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] > Sent: Thursday, June 14, 2001 10:09 PM > To: [EMAIL PROTECTED

An IF'y problem

2001-06-15 Thread Grierson, Garry (UK07)
The following simple piece of code works fine as it is but looks very messy compared to how it can be done in other languages. I first tried to write it as two simple if statements and one lump of formatting code, but the values generated within the if statements were not recognized outside the if