From rkleeman at energoncube.net Thu Nov 7 16:22:16 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: Perl Mongers this month Message-ID: <20021107222216.GA24373@energoncube.net> ~sdpm~ Perl Mongers, We have a meeting this month on November 20. Same place, Technical Training Resources, same time, 7PM. Now for the big question, is anyone interested in changing the time, location, or anything else about future meetings. If so, either bring your concerns up here, or at the meeting, and we'll decide from there. Another proposal was to have an informal meeting, and I think December might be a nice month to have that happen. A winter social of sorts. Who would be interested in that? What would you be interested in, drinks, dinner, or something other fun? ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Thu Nov 7 16:28:58 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: Perl Mongers this month Message-ID: <20021107222858.GB24373@energoncube.net> ~sdpm~ Perl Mongers, We have a meeting this month on Wednesday, November 20. Same place, Technical Training Resources, same time, 7PM. If anyone is interested in changing the time, place, or anything else about future meetings, we should discuss that. Let us know either here, on the list, or at the meeting and we'll discuss it and make a decision at the next meeting. Also, someone metioned that they'd be interested in a social event. December would probably be a good month for some sort of relaxed winter social. What would the group be interested in, just someplace with drinks, someplace with food and drinks, or perhaps something else. We'll talk about this at the next meeting too. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Wed Nov 13 17:54:32 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: SDPM Website to move soon Message-ID: <20021113235432.GC12070@devastator.energoncube.net> ~sdpm~ Fellow Mongers, I have just been informed that the SDPM website will need to be moving sometime in the near future. Can anyone (or their company) volunteer to host it. The traffic and size of the site make hosting it pretty easy. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From KLoomis at bigplanet.com Wed Nov 13 18:07:18 2002 From: KLoomis at bigplanet.com (Ken Loomis) Date: Thu Aug 5 00:20:40 2004 Subject: SDPM Website to move soon References: <20021113235432.GC12070@devastator.energoncube.net> Message-ID: <3DD2E936.8030107@BigPlanet.com> ~sdpm~ I can offer space on my hosting service. I do virtual hosting and am a resller. What specific requirements do you have? Ken Loomis\ Bob Kleemann wrote: >~sdpm~ >Fellow Mongers, > >I have just been informed that the SDPM website will need to be moving >sometime in the near future. Can anyone (or their company) volunteer to >host it. The traffic and size of the site make hosting it pretty easy. > >~sdpm~ > >The posting address is: san-diego-pm-list@hfb.pm.org > >List requests should be sent to: majordomo@hfb.pm.org > >If you ever want to remove yourself from this mailing list, >you can send mail to with the following >command in the body of your email message: > > unsubscribe san-diego-pm-list > >If you ever need to get in contact with the owner of the list, >(if you have trouble unsubscribing, or have questions about the >list itself) send email to . >This is the general rule for most mailing lists when you need >to contact a human. > > > > -- Ken Loomis Consultant Windows, Macintosh, Internet, etc. Helping to make your technology experience more pleasant & profitable ;-) 619-275-6919 / KLoomis@BigPlanet.com ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Mon Nov 18 11:35:59 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: SDPM Website to move soon In-Reply-To: <20021113235432.GC12070@devastator.energoncube.net> References: <20021113235432.GC12070@devastator.energoncube.net> Message-ID: <20021118173559.GC12796@devastator.energoncube.net> ~sdpm~ OK Perl Mongers, There have been two offers made to host the site. How about webmastering it? The job is easy, keep the web-page up to date with the date of our next meeting and answer any email sent to the webmaster. Additionally, we have a meeting this Wed, 7PM at TTR. Let me know if there are any comments, concerns, querries, or questions. Additionally, did everyone get my last message(s) about possibly changing the meeting time and/or place? Did anyone have *any* thoughts on the matter? On Wed, Nov 13, 2002 at 03:54:32PM -0800, Bob Kleemann wrote: > ~sdpm~ > Fellow Mongers, > > I have just been informed that the SDPM website will need to be moving > sometime in the near future. Can anyone (or their company) volunteer to > host it. The traffic and size of the site make hosting it pretty easy. > > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From menolly at mib.org Mon Nov 18 12:26:26 2002 From: menolly at mib.org (Menolly) Date: Thu Aug 5 00:20:40 2004 Subject: SDPM Website to move soon In-Reply-To: <20021118173559.GC12796@devastator.energoncube.net> Message-ID: ~sdpm~ On Mon, 18 Nov 2002, Bob Kleemann wrote: > Additionally, did everyone get my last message(s) about possibly > changing the meeting time and/or place? Did anyone have *any* thoughts > on the matter? I got it, but figured I'd expressed my position enough times that it didn't need repeating. Namely, Wednesdays don't work for me. Mondays would be best, Tuesdays or Fridays would be possible. The current location works for me. -- )\._.,--....,'``. | menolly@mib.org /, _.. \ _\ (`._ ,. | http://www.livejournal.com/~nolly/ `._.-(,_..'--(,_..'`-.;.' fL| Paranoid Cynical Optimist ----------------------------------------------------------------- You would fear me less if you knew me better. --from "The Great Green Worm", by Marie-Catherine D'Aulnoy, tr. A.S. Byatt ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Wed Nov 20 16:12:39 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: Meeting Tonight! Message-ID: <20021120221239.GA14508@devastator.energoncube.net> ~sdpm~ Just a reminder to all the Perl Mongers out there, there is a meeting tonight! 7PM is the time, TTR is the place. If there are any more questions just let me know. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Mon Nov 25 14:12:55 2002 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:40 2004 Subject: Notes from Wed's Meeting Message-ID: <20021125201255.GA4094@devastator.energoncube.net> ~sdpm~ Perl Mongers, Here's a quick summary of what was discussed and decided at the last meeting. But first, did anyone pick up anything from the meeting that they shouldn't have? Apparently there were some manuals or other documentation taken from around the projector. Please let me know if you did take anything home from the meeting that you didn't walk in with. Anyways, Joel stepped up to the plate and offered to be our new webmaster. Many thanks go to Bruce for his work on getting the website up to the point it is now. I'll get in contact with everyone involved in moving things around soon. Also meeting times will be changing soon. In December we will be meeting on the typical 3rd Wed of the month, Dec 18. Starting in Jan 2003 we will however change that to the third Tuesday in the month, Jan 21. If this will work better or worse for anyone here please let us know. Speaking of January, there seemed to be a great deal of interest in having the proposed social gathering of perl mongers. One evening during the first full week of January (Jan 6-10) was given as a possible date. The location proposed was the Elephant Bar on Rancho Bernardo Rd. (Most people were interested in a north county location.) What does everyone think about the proposed time and/or location? Additionally, we talked about Perl toolkits for creating and maintaining webpages along the lines of ASP. That moved slowly into a discussion about XML. The open ended question here is, "What XML tools do you use for examining and modifying XML in Perl?" That's pretty much it, unless someone who was there wants to add some details. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From joel at fentin.com Mon Nov 25 17:59:16 2002 From: joel at fentin.com (Joel Fentin) Date: Thu Aug 5 00:20:40 2004 Subject: Notes from Wed's Meeting References: <20021125201255.GA4094@devastator.energoncube.net> Message-ID: <005701c294de$dd585740$06833f42@6540q01> ~sdpm~ > But first, did anyone pick up anything from the meeting that > they shouldn't have? Apparently there were some manuals or other > documentation taken from around the projector. Please let me know if > you did take anything home from the meeting that you didn't walk in with. I was the first to arrive. When I got there, the projector was by itself. There were no manuals on the cart. If the cart has a bottom shelf, I didn't notice. -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 email: joel@fentin.com web: http://fentin.com ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From msteele at toppanelectronics.com Wed Nov 27 16:35:09 2002 From: msteele at toppanelectronics.com (Mark Steele) Date: Thu Aug 5 00:20:40 2004 Subject: Please help me upload a binary file through a CGI script. Message-ID: ~sdpm~ hey all Mongers, I'm trying to write a Perl CGI script that will upload an Excel file using Apache on a HP-UX system. I've been using some of the code from the perldoc part of CGI.pm and some code from the O'Reilly book "CGI Programming", I'm lost... All I want is a CGI script which will be called from a web page link that will upload Excel files (or binary file in general), text files would be nice too, but at a minimum just binary files. I can get text files fine. I get this in the Apache error log: [Wed Nov 27 14:34:56 2002] [error] [client 192.1.1.209] Premature end of script headers: /opt/apache2/lib/cgi-bin/get_excel_file.pl, referer: http://89.80.89.13/cgi-bin/get_excel_file.pl [Wed Nov 27 14:34:56 2002] [error] [client 192.1.1.209] CGI.pm: Server closed socket during multipart read (client aborted?)., referer: http://89.80.89.13/cgi-bin/get_excel_file.pl Can someone point me to some existing code that does this? Or for a laugh you can look at this mess I've created. As you can see I've tried lots of code... Thanks for ANY help.... Mark ---------------------------------------------------------------------- #!/opt/perl5/bin/perl -w use CGI; $q = new CGI; print $q->header(); print $q->start_html(-title=>'Get Excel file'), "\n"; print $q->start_multipart_form(); print "Select Excel file:
","\n"; print $q->filefield(-name=>'uploaded_file', -default=>'starting value', -size=>50), "\n"; print "

"; print $q->submit(-name=>'Submit', -value=>'Get File'), "\n"; print $q->end_form; $filename = $q->param('uploaded_file'); print "
"; print "filename = $filename"; print "
"; $buffer = ""; #binmode $fh; #binmode OUTPUT; open (OUTFILE,">>/tmp/mark"); while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE $buffer; } #$fh = $q->upload('uploaded_file'); #while (<$fh>) { # print OUTFILE; #} #$ref = $q->uploadInfo($filename); $file_type = $q->uploadInfo($filename)->{'Content-Type'}; print "file_type = $file_type"; #while ( ($key1,$value1) = each %{$ref} ) { # print "KEY: $key1 VALUE: $value1","

"; #} #foreach $key ($q->uploadInfo($filename)) { # print "$key"; #} #$type = $q->uploadInfo($filename)->{'Content-Type'}; #print "Type: $type","
"; #unless ($type eq 'text/html') { # die "HTML FILES ONLY!"; #} #if ($q->param() ) { # $filename = $q->param('uploaded_file'); # print "$filename","
"; #} #print "$filename","
"; print $q->end_html(); #
# Choose file to upload: # #
# Enter filename: # #

#
# # # # ---------------------------------------------------------------------- ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From msteele at toppanelectronics.com Wed Nov 27 16:38:42 2002 From: msteele at toppanelectronics.com (Mark Steele) Date: Thu Aug 5 00:20:40 2004 Subject: Please help me upload a binary file through a CGI script. Message-ID: ~sdpm~ hey all Mongers, I'm trying to write a Perl CGI script that will upload an Excel file using Apache on a HP-UX system. I've been using some of the code from the perldoc part of CGI.pm and some code from the O'Reilly book "CGI Programming", I'm lost... All I want is a CGI script which will be called from a web page link that will upload Excel files (or binary file in general), text files would be nice too, but at a minimum just binary files. I can get text files fine. I get this in the Apache error log: [Wed Nov 27 14:34:56 2002] [error] [client 192.1.1.209] Premature end of script headers: /opt/apache2/lib/cgi-bin/get_excel_file.pl, referer: http://89.80.89.13/cgi-bin/get_excel_file.pl [Wed Nov 27 14:34:56 2002] [error] [client 192.1.1.209] CGI.pm: Server closed socket during multipart read (client aborted?)., referer: http://89.80.89.13/cgi-bin/get_excel_file.pl Can someone point me to some existing code that does this? Or for a laugh you can look at this mess I've created. As you can see I've tried lots of code... Thanks for ANY help.... Mark ---------------------------------------------------------------------- #!/opt/perl5/bin/perl -w use CGI; $q = new CGI; print $q->header(); print $q->start_html(-title=>'Get Excel file'), "\n"; print $q->start_multipart_form(); print "Select Excel file:
","\n"; print $q->filefield(-name=>'uploaded_file', -default=>'starting value', -size=>50), "\n"; print "

"; print $q->submit(-name=>'Submit', -value=>'Get File'), "\n"; print $q->end_form; $filename = $q->param('uploaded_file'); print "
"; print "filename = $filename"; print "
"; $buffer = ""; #binmode $fh; #binmode OUTPUT; open (OUTFILE,">>/tmp/mark"); while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE $buffer; } #$fh = $q->upload('uploaded_file'); #while (<$fh>) { # print OUTFILE; #} #$ref = $q->uploadInfo($filename); $file_type = $q->uploadInfo($filename)->{'Content-Type'}; print "file_type = $file_type"; #while ( ($key1,$value1) = each %{$ref} ) { # print "KEY: $key1 VALUE: $value1","

"; #} #foreach $key ($q->uploadInfo($filename)) { # print "$key"; #} #$type = $q->uploadInfo($filename)->{'Content-Type'}; #print "Type: $type","
"; #unless ($type eq 'text/html') { # die "HTML FILES ONLY!"; #} #if ($q->param() ) { # $filename = $q->param('uploaded_file'); # print "$filename","
"; #} #print "$filename","
"; print $q->end_html(); #
# Choose file to upload: # #
# Enter filename: # #

#
# # # # ---------------------------------------------------------------------- ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From chris_radcliff at mac.com Wed Nov 27 17:34:03 2002 From: chris_radcliff at mac.com (Chris Radcliff) Date: Thu Aug 5 00:20:40 2004 Subject: Please help me upload a binary file through a CGI script. In-Reply-To: Message-ID: ~sdpm~ Hi Mark, I've made a few changes to your code and added a lot of comments about what is actually going on. It looks like your use of warnings (that -w) caused the script to emit a warning before the first header, which gave Apache fits. I added lexical scoping ('my') to all your variables and gave them default values (the || '') to avoid other warnings. The comments should explain it all, but let me know if you have any questions. Cheers, ~chris On Wednesday, November 27, 2002, at 02:38 PM, Mark Steele wrote: > hey all Mongers, > > I'm trying to write a Perl CGI script that will upload an Excel file > using Apache on a HP-UX system. > > I've been using some of the code from the perldoc part of CGI.pm and > some code from the O'Reilly book "CGI Programming", I'm lost... > > All I want is a CGI script which will be called from a web page link > that will upload Excel files (or binary file in general), text files > would be nice too, but at a minimum just binary files. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From chris_radcliff at mac.com Wed Nov 27 17:35:19 2002 From: chris_radcliff at mac.com (Chris Radcliff) Date: Thu Aug 5 00:20:41 2004 Subject: Please help me upload a binary file through a CGI script. In-Reply-To: Message-ID: Whoops! It helps if I attach the file instead of just describing it. :) ~c -------------- next part -------------- Skipped content of type multipart/appledouble From msteele at toppanelectronics.com Wed Nov 27 18:18:21 2002 From: msteele at toppanelectronics.com (Mark Steele) Date: Thu Aug 5 00:20:41 2004 Subject: Please help me upload a binary file through a CGI script. Message-ID: ~sdpm~ Thanks Chris, I tried it but still get weird error, maybe it's Apache? Text files are fine, but when I select an Excel file I get: [Wed Nov 27 16:16:08 2002] [error] [client 192.1.1.209] Premature end of script headers: /opt/apache2/lib/cgi-bin/upload-pm.cgi I'm running out of time, I gotta go and start preparing for the feast tomorrow. Thanks for your help, the code looks 100% better and I'm sure it 99% there, I'll take it home and work on it over the long weekend... Mark > -----Original Message----- > From: Chris Radcliff [mailto:chris_radcliff@mac.com] > Sent: Wednesday, November 27, 2002 3:34 PM > To: Mark Steele > Cc: 'san-diego-pm-list@happyfunball.pm.org' > Subject: Re: Please help me upload a binary file through a CGI script. > > > Hi Mark, > > I've made a few changes to your code and added a lot of > comments about > what is actually going on. It looks like your use of warnings > (that -w) > caused the script to emit a warning before the first header, > which gave > Apache fits. > > I added lexical scoping ('my') to all your variables and gave them > default values (the || '') to avoid other warnings. > > The comments should explain it all, but let me know if you have any > questions. > > Cheers, > ~chris > > On Wednesday, November 27, 2002, at 02:38 PM, Mark Steele wrote: > > > hey all Mongers, > > > > I'm trying to write a Perl CGI script that will upload an Excel file > > using Apache on a HP-UX system. > > > > I've been using some of the code from the perldoc part of CGI.pm and > > some code from the O'Reilly book "CGI Programming", I'm lost... > > > > All I want is a CGI script which will be called from a web page link > > that will upload Excel files (or binary file in general), text files > > would be nice too, but at a minimum just binary files. > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human.