Re: Perl and Visual Basic

2002-05-03 Thread John Brooking
I'm assuming you are using ActivePerl. In ActiveState's Perl Dev Kit (sold separately, $129), there is a utility to package an ActivePerl script into a stand-alone Windows executable. I've only tried the free 7-day trial version, but it seems to work pretty well, including wrapping up any extra mo

Re: http headers

2002-04-24 Thread John Brooking
Most recent editions of Perl come with the CGI module, which is what you want. Type "perldoc CGI" at your friendly neighborhood command prompt. The O'Reilly book "CGI Programming with Perl" has a good overview, as do no doubt countless other books. The basic steps are: use CGI; my $cgi = new CGI

RE: output into a csv file

2001-12-17 Thread John . Brooking
Scott, I've found the AnyData module (search CPAN for AnyData) to be great for CSV. It can read and write CSV or XML, either tied to hash variables or through a DBI interface, as well as reading and writing to HTML tables. I've noticed that it uses the following rules for CSV: * If field to wr

RE: Win32::Console.

2001-12-13 Thread John . Brooking
Windows: A 32 bit extension and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition, and cares 0 bits about its customers! Source: Going around the web, found by me on http:

RE: Passing arrays across forms

2001-12-12 Thread John . Brooking
> -Original Message- > From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 12, 2001 10:53 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Passing arrays across forms > > > You take the source, modify the value of hidden field

RE: Passing arrays across forms

2001-12-12 Thread John . Brooking
Etienne, How can users change hidden fields on a form using POST (not GET)?? I also find the CGI.pm syntax for writing HTML annoying. I think it was you in a recent post who noted Perl's "here document" technique (print< -Original Message- > From: Etienne Marcotte [mailto:[EMAIL PR

RE: Passing arrays across forms

2001-12-12 Thread John . Brooking
Sharat, I tend to prefer hidden form variables to pass data, as cookies could be unsupported or turned off by the client browser. The CGI.pm module provides an easy way to access form variables from your Perl script. The O'Reilly book _CGI Programming with Perl_ has several chapters dedicated

RE: Data::Dumper and eval question

2001-12-12 Thread John . Brooking
text files (CSV and XML) as either a tied hash or through DBI. I mention it just in case you would find it useful. - John Brooking Portland, Maine > -Original Message- > From: Robert Thompson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 12:09 PM > To: Danie

RE: how to automatically put 'membernames' in the msg posted.

2001-12-07 Thread John . Brooking
Reference that I just happened across on my desk: "CGI Programming with Perl", O'Reilly, Chapter 11, "Maintaining State". The three methods discussed are "Query String and Extra Path Information" (what I discussed below), "Hidden Fields", and "Client-Side Cookies". > -Original Message- >

RE: Finding 'probable' duplicate records

2001-12-07 Thread John . Brooking
Carl, I don't have a lot of Perl-specific advice, but if it's possible to dependably parse each line into the component fields (last name, first name, street address, etc.), you could apply some intelligent guesses using the various fields. If this is possible, here's what worked pretty well fo

RE: how to automatically put 'membernames' in the msg posted.

2001-12-07 Thread John . Brooking
I imagine that you are speaking of sites which record session information on the server. The pages pass a session ID or some other identifying information with each internal link, often by appending something like "?id=123456789" to the end of each URL after the user logs in. To do this, you need

RE: PERL and MySQL

2001-12-05 Thread John . Brooking
It seems to me that this is more a function of the database than of Perl. Standard SQL syntax (as far as I know) doesn't define how to join tables between databases. Some databases, Oracle or Access for example, allow you to link tables between one database and another, then you can just use stand

RE: today's date....

2001-12-05 Thread John . Brooking
There are a number of date formatting routines available at http://search.cpan.org/. > -Original Message- > From: Shinagare, Sandeep [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 05, 2001 11:27 AM > To: '[EMAIL PROTECTED]' > Subject: today's date > > > Hi Folks! > Trying to

RE: add hash to hash of hash

2001-12-03 Thread John . Brooking
Just off the top of my head: {'pierce'} by itself is not a hash, is it? A hash is a set of key/value pairs, so a single value cannot be a hash. > -Original Message- > From: Mark Hanson [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 03, 2001 4:42 PM > To: [EMAIL PROTECTED] > Subject: