From fedm at pkcommunications.com Fri Feb 4 09:23:38 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Writing Message-ID: <4.2.0.58.20000204102206.00aa0530@mail1.pkcommunications.com> I was wondering if anyone has any suggestions as to what modules, and methods I might use to take information from a form, and append to an existing text file? Thanks in advance! Fred From sporter at rit.net Fri Feb 4 09:40:37 2000 From: sporter at rit.net (Shawn Porter) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Writing In-Reply-To: <4.2.0.58.20000204102206.00aa0530@mail1.pkcommunications.com> Message-ID: On Fri, 4 Feb 2000, Fred Edmister wrote: > I was wondering if anyone has any suggestions as to what modules, and > methods I might use to take information from a form, CGI.pm > and append to an existing text file? open and print would probably come in handy... > Thanks in advance! > > Fred -- Shawn Porter http://www.rit.net/sporter sporter@rit.net From fedm at pkcommunications.com Fri Feb 4 10:04:18 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Writing In-Reply-To: References: <4.2.0.58.20000204102206.00aa0530@mail1.pkcommunications.com> Message-ID: <4.2.0.58.20000204110313.00a9fca0@mail1.pkcommunications.com> Thank you Shawn! THat's exactly what I was looking for... I've got both CGI.pm, and cgi-lib.pl, and wasn't sure what one would be better! I've heard stories about them both, and you should use different ones for different things!! Thanks again! Fred At 10:40 AM 2/4/00 -0500, you wrote: >On Fri, 4 Feb 2000, Fred Edmister wrote: > > > I was wondering if anyone has any suggestions as to what modules, > and > > methods I might use to take information from a form, > >CGI.pm > > > and append to an existing text file? > >open and print would probably come in handy... > > > Thanks in advance! > > > > Fred > >-- >Shawn Porter >http://www.rit.net/sporter >sporter@rit.net From fedm at pkcommunications.com Wed Feb 9 13:46:14 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... Message-ID: <4.2.0.58.20000209144359.00ac0e60@mail1.pkcommunications.com> If I use a "foreach" type of array, is it possible to open a text file, separate each line into separate variables and have a script edit or delete just that line? Or is the only way to do it to just open the file, and append the differences? (which I've already got done, I'm just trying to make this easier :) ) Thanks in advance! Fred From fedm at pkcommunications.com Wed Feb 9 13:52:25 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Meeting? Message-ID: <4.2.0.58.20000209145152.00ae1d20@mail1.pkcommunications.com> Is there gonna be a meeting in February? I just went to the site and it doesn't say... ;-) Just curious! Fred From sporter at rit.net Wed Feb 9 13:54:17 2000 From: sporter at rit.net (Shawn Porter) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: <4.2.0.58.20000209144359.00ac0e60@mail1.pkcommunications.com> Message-ID: On Wed, 9 Feb 2000, Fred Edmister wrote: > If I use a "foreach" type of array, "foreach" is not a type of array. More on "foreach"... % perldoc perlsyn > is it possible to open a text file, separate each line into separate > variables and have a script edit or delete just that line? Or is the > only way to do it to just open the file, and append the differences? > (which I've already got done, I'm just trying to make this easier :) > ) Thanks in advance! It is possible. It is explained in perlfaq... -> http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html#How_do_I_change_one_line_in_a_fi or % perldoc perlfaq5 -- Shawn Porter http://www.rit.net/sporter work - 716-223-3610 x116 home - 716-242-8742 sporter@rit.net From webmaster at rochester.rr.com Wed Feb 9 14:02:31 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: <4.2.0.58.20000209144359.00ac0e60@mail1.pkcommunications.com> Message-ID: <000701bf7338$9954d660$7f01a8c0@rochester.rr.com> > If I use a "foreach" type of array, is it possible to open > a text file, > separate each line into separate variables and have a script edit > or delete > just that line? Or is the only way to do it to just open the file, and > append the differences? (which I've already got done, I'm just trying to > make this easier :) ) Thanks in advance! There's a recipe in the Perl Cookbook that details treating lines of a text files as array items... Recipe 14.7 use DB_File; tie(@array, "DB_File", "/tmp/textfile", O_RDWR|O_CREAT, 0666, $DB_RECNO) or die "cannot open file 'text' : $!"; $array[4] = "A new line written in."; untie @array; You can push, pop, shift, etc. in an object style ( $x->push($list1, $list2) )if you capture the object returned from the tie. $DB_RECNO is the magic trick. There's a much longer example in the Perl Cookbook, which is just about the mostest valuablest book ever for Perl stuff - buy it if at all possible. Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" From fedm at pkcommunications.com Wed Feb 9 14:12:02 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: References: <4.2.0.58.20000209144359.00ac0e60@mail1.pkcommunications.com> Message-ID: <4.2.0.58.20000209150936.00ae1860@mail1.pkcommunications.com> I just meant any array, or method of opening the file and splitting the lines into individule editable variables... I guess I should have said if I use "foreach" OR any type of array, scalar, or any other method... All I was curious about was if it's possible to split the lines and make them singally editable and appendable to a text file... Otherwise, I'l leave it as just opening the file, and having it edited that way... But thank you for the reference to the docs... Fred At 02:54 PM 2/9/00 -0500, you wrote: >On Wed, 9 Feb 2000, Fred Edmister wrote: > > > If I use a "foreach" type of array, > >"foreach" is not a type of array. More on "foreach"... > >% perldoc perlsyn > > > is it possible to open a text file, separate each line into separate > > variables and have a script edit or delete just that line? Or is the > > only way to do it to just open the file, and append the differences? > > (which I've already got done, I'm just trying to make this easier :) > > ) Thanks in advance! > >It is possible. It is explained in perlfaq... > >-> >http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html#How_do_I_change_on >e_line_in_a_fi > >or > >% perldoc perlfaq5 > >-- >Shawn Porter >http://www.rit.net/sporter >work - 716-223-3610 x116 >home - 716-242-8742 >sporter@rit.net From fedm at pkcommunications.com Wed Feb 9 14:16:25 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: <000701bf7338$9954d660$7f01a8c0@rochester.rr.com> References: <4.2.0.58.20000209144359.00ac0e60@mail1.pkcommunications.com> Message-ID: <4.2.0.58.20000209151531.00a63db0@mail1.pkcommunications.com> Thank you very much!! :) I was just at Borders yesterday too... ROFL! Just my luck! Thanks again! Fred At 03:02 PM 2/9/00 -0500, you wrote: > > If I use a "foreach" type of array, is it possible to open > > a text file, > > separate each line into separate variables and have a script edit > > or delete > > just that line? Or is the only way to do it to just open the file, and > > append the differences? (which I've already got done, I'm just trying to > > make this easier :) ) Thanks in advance! > >There's a recipe in the Perl Cookbook that details treating lines of a text >files as array items... Recipe 14.7 > >use DB_File; > >tie(@array, "DB_File", "/tmp/textfile", O_RDWR|O_CREAT, 0666, $DB_RECNO) > or die "cannot open file 'text' : $!"; > >$array[4] = "A new line written in."; > >untie @array; > >You can push, pop, shift, etc. in an object style ( $x->push($list1, >$list2) )if you capture the object returned from the tie. $DB_RECNO is the >magic trick. There's a much longer example in the Perl Cookbook, which is >just about the mostest valuablest book ever for Perl stuff - buy it if at >all possible. > >Justin C. Sherrill >Rochester Road Runner Webmaster >http://www.rochester.rr.com/ >"Think slow, type fats" From bmathis at directedge.com Wed Feb 9 14:33:26 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: <4.2.0.58.20000209150936.00ae1860@mail1.pkcommunications.com> Message-ID: On Wed, 9 Feb 2000, Fred Edmister wrote: > I just meant any array, or method of opening the file and > splitting the lines into individule editable variables... I guess I should > have said if I use "foreach" OR any type of array, scalar, or any other > method... All I was curious about was if it's possible to split the lines > and make them singally editable and appendable to a text file... Otherwise, > I'l leave it as just opening the file, and having it edited that way... But > thank you for the reference to the docs... > > Fred You mean, like: open(FILE, "< file.txt") or die("Cant open file: $!"); @lines = ; close FILE; ? -- Brian Mathis Direct Edge http://www.directedge.com From sbarton at ufosys.com Wed Feb 9 14:29:14 2000 From: sbarton at ufosys.com (Scott Barton) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] unsubscribe sab0276@rit.edu Message-ID: > -----Original Message----- > From: Brian Mathis [SMTP:bmathis@directedge.com] > Sent: Wednesday, February 09, 2000 3:33 PM > To: rochester-pm-list@happyfunball.pm.org > Subject: Re: [rochester-pm-list] foreach question... > > On Wed, 9 Feb 2000, Fred Edmister wrote: > > I just meant any array, or method of opening the file and > > splitting the lines into individule editable variables... I guess I > should > > have said if I use "foreach" OR any type of array, scalar, or any other > > method... All I was curious about was if it's possible to split the > lines > > and make them singally editable and appendable to a text file... > Otherwise, > > I'l leave it as just opening the file, and having it edited that way... > But > > thank you for the reference to the docs... > > > > Fred > > You mean, like: > > open(FILE, "< file.txt") or die("Cant open file: $!"); > @lines = ; > close FILE; > > ? > > -- > Brian Mathis > Direct Edge > http://www.directedge.com From fedm at pkcommunications.com Wed Feb 9 14:48:27 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] foreach question... In-Reply-To: References: <4.2.0.58.20000209150936.00ae1860@mail1.pkcommunications.com> Message-ID: <4.2.0.58.20000209154335.00ae5e40@mail1.pkcommunications.com> At 03:33 PM 2/9/00 -0500, you wrote: Yes! :) Right now, I have a text file that I can open and edit freely... (ie it prints it all to a text box in a form) what I'm looking to try is to open the file (generally about 50 lines all ending in a carriage return) and split each line into it's own editable/then re-writable field... (so if someone edits line 5 and/or deletes line 8 it will edit/delete said lines) :) It looks so far like it's gonna ba a pain in the butt, if even possible. :) But yes, thats it! :) Thank you! Fred >You mean, like: > >open(FILE, "< file.txt") or die("Cant open file: $!"); >@lines = ; >close FILE; > >? > >-- >Brian Mathis >Direct Edge >http://www.directedge.com From bmathis at directedge.com Sat Feb 12 01:31:07 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder Message-ID: <38A50C3B.30F931D1@directedge.com> Hello all, We will be having a meeting this coming Wednesday at Monty's Crown. Age should not be an issue, but if you are concerned about it, just send me a note, and we can go right to Boldo's Armory. It's 50 feet away, so it's no big deal. (Also, there's very few people there on Wed, so it should be pretty easy to find us). Recently, we have changed the meetings to a more social type of thing, and moved to the bar, in hopes that people were more interested in that. If that is not the case (as the past few meetings have been scarcely attended), please show up and give us your input on what you'd like to do. I have updated the web site with new calendars, and added a little more info to it. I have added Monty's Crown as a meeting place, and have started to place on the calendar where each meeting will be held. If you're not sure where it will be, check the calendar. I've also added instructions on how to unsubscribe from the list, in case you were interested in doing that. You should also notice (hopefully), that there is now a tagline on the bottom of each message, directing you to the web site. -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Sat Feb 12 02:27:37 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder Message-ID: <38A51979.21174B13@directedge.com> Sorry if you get this twice.. ------------------ Hello all, We will be having a meeting this coming Wednesday at Monty's Crown. Age should not be an issue, but if you are concerned about it, just send me a note, and we can go right to Boldo's Armory. It's 50 feet away, so it's no big deal. (Also, there's very few people there on Wed, so it should be pretty easy to find us). Recently, we have changed the meetings to a more social type of thing, and moved to the bar, in hopes that people were more interested in that. If that is not the case (as the past few meetings have been scarcely attended), please show up and give us your input on what you'd like to do. I have updated the web site with new calendars, and added a little more info to it. I have added Monty's Crown as a meeting place, and have started to place on the calendar where each meeting will be held. If you're not sure where it will be, check the calendar. I've also added instructions on how to unsubscribe from the list, in case you were interested in doing that. You should also notice (hopefully), that there is now a tagline on the bottom of each message, directing you to the web site. -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From charles at mckeanmachinery.com Mon Feb 14 14:59:27 2000 From: charles at mckeanmachinery.com (Charles Rishel) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder Message-ID: Brian, Sorry I only made the one meeting. I would like to attend more, but I have been rather busy with work and now the weather makes it not so nice a drive. As I live in Olean, it is a bit out of the way ;-). but, I wanted to offer up a bit of script that I wrote, for discussion, critique, or 'just because'. I welcome any input from you or anyone in the group. I am sure there were probably easier ways of doing it, but I came up with this program about 3 months ago, it works well, so I left it aone. You know what they say 'If it ain't broke, keep your d*#! hands off of it' ;-) Charles K. Rishel IT Manager McKean Machinery Sales http://www.mckeanmachinery.com #!/bin/perl #This program created by Charles K. Rishel #Why?? #1. I got tired of manually deleting up to 200 images from our Web-Server. #2. Why not? #This program will read a list of files to delete from an input file, #and remove the files contained in that file, from the current dir. $infile="remove.txt"; #variable to hold the input filename. $countallfiles=0; #variable to hold the number of files in list $count=0; #variable to hold the number of files deleted open(IN,$infile)|| die "cannot open $infile for reading: $!\n"; #opens the input file while() #loop until end of $infile is reached, reading each line of text. { $countallfiles++; #This increments the file counter for all files in list s/ 00//; #This code is remarked below. $filename=$_; chomp($filename); $filename="$filename.jpg"; if (unlink($filename)>0) { $count++; #This increments the file counter for deleted files } #The following code will print all filenames not deleted. #not necessary for my purposes, so commented out. # else # { # print "cannot delete $filename: $!\n"; # } } print "$count of $countallfiles files deleted.\n"; #The following code is used to remove the 2 spaces and 2 leading zero's from # the input data file, and append the .jpg extension making a valid image filename. # s/ 00//; #removes the spaces between the supplier and item# leading 0's # $filename=$_; #variable to hold the new string, now in file format # chomp($filename); #remove the null character at end of string # $filename="$filename.jpg"; #append .jpg to the end of the string #The input file data AT 001401, comes through this process as AT1401.jpg, and this filename #can then be used to remove the applicable file. The nice part is that if you already have a #list containing valid filenames such as AT1401.jpg, you can eliminate the step to add the #extension, and all will be fine. On 02/12/2000 3:27:37 AM, Brian Mathis wrote: >Sorry if you get this twice.. >------------------ >Hello all, > >We will be having a meeting this coming Wednesday at Monty's Crown. Age >should not be an issue, but if you are concerned about it, just send me a >note, and we can go right to Boldo's Armory. It's 50 feet away, so it's no >big deal. (Also, there's very few people there on Wed, so it should be >pretty easy to find us). > >Recently, we have changed the meetings to a more social type of thing, and >moved to the bar, in hopes that people were more interested in that. If >that is not the case (as the past few meetings have been scarcely >attended), please show up and give us your input on what you'd like to do. > >I have updated the web site with new calendars, and added a little more >info to it. I have added Monty's Crown as a meeting place, and have >started to place on the calendar where each meeting will be held. If >you're not sure where it will be, check the calendar. > >I've also added instructions on how to unsubscribe from the list, in case >you were interested in doing that. > >You should also notice (hopefully), that there is now a tagline on the >bottom of each message, directing you to the web site. > >-- >Brian Mathis >Direct Edge >http://www.directedge.com >---------- >For information on unsubscribing from this list, please visit http://rochester.pm.org > ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From webmaster at rochester.rr.com Tue Feb 15 08:10:14 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder In-Reply-To: Message-ID: <001201bf77be$60bc2da0$7f01a8c0@rochester.rr.com> > but, I wanted to offer up a bit of script that I wrote, for > discussion, critique, or 'just because'. I welcome any input > from you or anyone in the > group. I am sure there were probably easier ways of doing it, > but I came up with this program about 3 months ago, it works > well, so I left it aone. > You know what they say 'If it ain't broke, keep your d*#! hands > off of it' ;-) What's the common factor that makes these files need to be deleted? I was thinking a different delimiter like age or naming syntax might make it easier to get rid of these... Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From charles at mckeanmachinery.com Tue Feb 15 08:38:45 2000 From: charles at mckeanmachinery.com (Charles Rishel) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder Message-ID: These are Inventory photo's for equipment we list on our company web-site. Once per month I run a report that lists all of our sold items and remove the photo's for these items from the web-site. Our inventory listing is updated and imported into the MySql database daily and photo's for new inventory is added every day. Sold items are not in the database listing and therefore not listed on the web-site, but the photo's remain. Rather than spend 2+ hours every month looking at an extremely long list of sold items and manually removing the photo's from the web-site, I created the script to do that. It does it much faster than I can. I generate the sold item list on our AS/400 server, transfer it to the pc then upload that as "remove.txt" to the web-server and run the script to remove any images that match our sold item list. Charles K. Rishel IT Manager McKean Machinery Sales http://www.mckeanmachinery.com On 02/15/2000 9:10:14 AM, "Justin C. Sherrill" wrote: >> but, I wanted to offer up a bit of script that I wrote, for >> discussion, critique, or 'just because'. I welcome any input >> from you or anyone in the >> group. I am sure there were probably easier ways of doing it, >> but I came up with this program about 3 months ago, it works >> well, so I left it aone. >> You know what they say 'If it ain't broke, keep your d*#! hands >> off of it' ;-) > >What's the common factor that makes these files need to be deleted? I was >thinking a different delimiter like age or naming syntax might make it >easier to get rid of these... > >Justin C. Sherrill >Rochester Road Runner Webmaster >http://www.rochester.rr.com/ >"Think slow, type fats" > >---------- >For information on unsubscribing from this list, please visit http://rochester.pm.org > ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From webmaster at rochester.rr.com Tue Feb 15 10:07:54 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Web Site update, meeting reminder In-Reply-To: Message-ID: <000201bf77ce$d0e4ff20$7f01a8c0@rochester.rr.com> Well, if you like short scripts, this ought to work too. I haven't tried it, though I did check syntax. I've always wanted to use a lazy &&. #!/bin/perl # read in whole file open(IN,"remove.txt") || die "cannot open remove.txt for reading: $!\n"; $\ = undef; $file = ; $\ = "\n"; close IN; # get rid of unneeded characters $file =~ s/ 00//g; # pull names out and delete/count @filenames = split /\n/, $file; foreach $file_to_delete (@filenames) { unlink($file_to_delete) && $count++; } # results print "$count of ", scalar(@filenames), " files deleted.\n"; ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From ALEX.MACUR at MDCONSULT.COM Tue Feb 15 10:25:03 2000 From: ALEX.MACUR at MDCONSULT.COM (Alex Macur) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Anyone with experience adding DBI/DBD to ActiveState Perl? Message-ID: Hello all, With my SPARCstation stuck at MD Consult world headquarters in St. Louis for a tune-up for at least another week or so I'm trying to set up a perl development environment on one of my NT (4.0SP5) boxes as an interim solution Xemacs installed ok so I now have a real editor. The ActiveState 522 perl installed OK and I can do the non-database stuff I need to. I need to add database connectivity (DBI/DBD, specifically Oracle) and I am wondering it will become a major time sync to try to add it to the perl binary you can download from Active State A quick test of trying to install something simple like Time::HiRes using -M CPAN failed under ActiveState PERL on my NT box so I think this does not bode for an easy install. I'm wondering if anyone has any experience adding packages like DBI/DBD/Oraperl that require relinking perl to ActiveState Perl. Is it a major headache (i.e. I need to download and install lots of gnu stuff and/or purchase visual C and it turns into a multi-day project)? Does anyone have experience with the CD-ROM distribution (http://www.ActiveState.com/ActivePerl/CDFAQ.htm)? I am wondering if purchasing it allow me to jump to resuming my perl programming instead of spending a lot of time trying to build a NT version of perl with the packages I need. Thanks Alex -- Alexander G. Macur alex.macur@mdconsult.com MD Consult LLC "What Doctors Need to Know (tm)" 11701 Borman Dr. Ste. 300, St. Louis, MO 63146 716-265-1490 ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Tue Feb 15 10:58:53 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Anyone with experience adding DBI/DBD to ActiveState Perl? In-Reply-To: Message-ID: On Tue, 15 Feb 2000, Alex Macur wrote: > Hello all, > > With my SPARCstation stuck at MD Consult world headquarters in St. Louis > for a tune-up for at least another week or so I'm trying to set up a > perl development environment on one of my NT (4.0SP5) boxes as an interim > solution Install Linux :). Or OpenBSD... > Xemacs installed ok so I now have a real editor. The ActiveState 522 > perl installed OK and I can do the non-database stuff I need to. > > I need to add database connectivity (DBI/DBD, specifically Oracle) and I > am wondering it will become a major time sync to try to add it to the > perl binary you can download from Active State > > A quick test of trying to install something simple like Time::HiRes > using -M CPAN failed under ActiveState PERL on my NT box so I think this > does not bode for an easy install. AFAIK, You do not need to use CPAN to get Perl modules. Activestate comes with a Perl Package Manager. You should be using that to DL Packages from Activestate's web site. It's probably in the docs somewhere. > I'm wondering if anyone has any experience adding packages like > DBI/DBD/Oraperl that require relinking perl to ActiveState Perl. Is it a > major headache (i.e. I need to download and install lots of gnu stuff > and/or purchase visual C and it turns into a multi-day project)? You haven't needed to relink the perl binary in quite a while. Everything is a dynamic library now, pretty much. DBI/DBD should be ready to DL from Activestate's site, and oraperl is so hopelessly out of date that you should've stopped using it a few years ago. It's functionality has been replaced with DBD/DBI. > Does anyone have experience with the CD-ROM distribution > (http://www.ActiveState.com/ActivePerl/CDFAQ.htm)? I am wondering if > purchasing it allow me to jump to resuming my perl programming instead > of spending a lot of time trying to build a NT version of perl with the > packages I need. > > Thanks > Alex -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From ALEX.MACUR at MDCONSULT.COM Tue Feb 15 11:53:09 2000 From: ALEX.MACUR at MDCONSULT.COM (Alex Macur) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Anyone with experience adding DBI/DBD to ActiveState Perl? Message-ID: Thanks for the hint Brian. Being the UNIX bigot that I am I forgot about evil .DLLs. (of course I've NEVER had a problem due to LD_LIBRARY_PATH being wrong ;-) I'll look into the ActiveState Perl Package Manager. My original post was going to be would it be easier to just install FreeBSD or Linux instead of trying to set up a perl development environment under NT. oraperl.pl is ancient. Oraperl.pm emulates the old oraperl API but uses the current DBI/DBD technology for database connectivity. If you happen to be unfortunate enough to inherit a large amount of code that uses the old Oraperl API (IMHO) using oraperl.pm beats doing a major rewrite to the DBI/DBD API. Alex -----Original Message----- From: Brian Mathis [mailto:bmathis@directedge.com] Sent: Tuesday, February 15, 2000 11:59 To: rochester-pm-list@happyfunball.pm.org Subject: Re: [rochester-pm-list] Anyone with experience adding DBI/DBD to ActiveState Perl? On Tue, 15 Feb 2000, Alex Macur wrote: > Hello all, > > With my SPARCstation stuck at MD Consult world headquarters in St. Louis > for a tune-up for at least another week or so I'm trying to set up a > perl development environment on one of my NT (4.0SP5) boxes as an interim > solution Install Linux :). Or OpenBSD... > Xemacs installed ok so I now have a real editor. The ActiveState 522 > perl installed OK and I can do the non-database stuff I need to. > > I need to add database connectivity (DBI/DBD, specifically Oracle) and I > am wondering it will become a major time sync to try to add it to the > perl binary you can download from Active State > > A quick test of trying to install something simple like Time::HiRes > using -M CPAN failed under ActiveState PERL on my NT box so I think this > does not bode for an easy install. AFAIK, You do not need to use CPAN to get Perl modules. Activestate comes with a Perl Package Manager. You should be using that to DL Packages from Activestate's web site. It's probably in the docs somewhere. > I'm wondering if anyone has any experience adding packages like > DBI/DBD/Oraperl that require relinking perl to ActiveState Perl. Is it a > major headache (i.e. I need to download and install lots of gnu stuff > and/or purchase visual C and it turns into a multi-day project)? You haven't needed to relink the perl binary in quite a while. Everything is a dynamic library now, pretty much. DBI/DBD should be ready to DL from Activestate's site, and oraperl is so hopelessly out of date that you should've stopped using it a few years ago. It's functionality has been replaced with DBD/DBI. > Does anyone have experience with the CD-ROM distribution > (http://www.ActiveState.com/ActivePerl/CDFAQ.htm)? I am wondering if > purchasing it allow me to jump to resuming my perl programming instead > of spending a lot of time trying to build a NT version of perl with the > packages I need. > > Thanks > Alex -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Tue Feb 15 12:22:09 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Anyone with experience adding DBI/DBD to ActiveState Perl? In-Reply-To: Message-ID: On Tue, 15 Feb 2000, Alex Macur wrote: > Thanks for the hint Brian. > > Being the UNIX bigot that I am I forgot about evil .DLLs. (of course I've > NEVER had a problem due to LD_LIBRARY_PATH being wrong ;-) > > I'll look into the ActiveState Perl Package Manager. > > My original post was going to be would it be easier to just install FreeBSD > or Linux instead of trying to set up a perl development environment under > NT. > > oraperl.pl is ancient. Oraperl.pm emulates the old oraperl API but uses the > current DBI/DBD technology for database connectivity. If you happen to be > unfortunate enough to inherit a large amount of code that uses the old > Oraperl API (IMHO) using oraperl.pm beats doing a major rewrite to the > DBI/DBD API. > > Alex Ahh, I thought you were talking about the oraperl binary itself. Didn't know there was an oraperl.pm. That makes plenty of sense then :) -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Tue Feb 15 14:57:31 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] www.perl.com: My Life With Spam (fwd) Message-ID: Some perl news. -- Brian Mathis Direct Edge http://www.directedge.com ---------- Forwarded message ---------- Date: Tue, 15 Feb 2000 11:51:56 -0800 From: perl-update-admin@lists.songline.com Reply-To: perl-update@lists.songline.com To: perl-update@lists.songline.com Subject: www.perl.com: My Life With Spam www.perl.com update -------------------------------------- The Email for www.perl.com Subscribers ============================================================ Sponsored by ApacheCon 2000 Plan to attend the largest gathering of Apache users. ApacheCon 2000, Conference: March 8-10, 2000, Caribe Royale Resort Orlando, Florida. ApacheCon 2000 is the only Apache event to be fully supported by the Apache Software Foundation. Apache founders and leading contributors have designed the technical program, which includes four tracks packed with 40 sessions with over 70+ hours of instruction. Each session is designed to be immediately useful. www.apachecon.com ============================================================ Hello, perl.com subscribers. Simon Cozens and Myths of Perl It's only been a week since our last newsletter so there's not too much news. But we have a fine new article by Simon Cozens, author of the upcoming book `Beginning Perl'. Simon discusses ten `Myths of Perl'---things people often say but which aren't true. Simon's article is online at: http://www.perl.com/pub/2000/01/10PerlMyths.html New Man Pages Impending In other news, Randal Schwartz, well-known co-author of `Learning Perl' and `Programming Perl', contributed a new manual page to the Perl documentation set this week. It's called `perlroot' and is a tutorial on Perl's object-oriented programming features. `root' is short for `Randal's Object-Oriented Tutorial', by analogy with the existing `perltoot'. Randal's new page will probably be available in Perl 5.6, and in the meantime is available from: http://www.stonehenge.com/perlroot.pod p5p Summaries Temporarily Removed Finally, p5p traffic summaries have been removed from the perl.com main page until I get time to write more of them. Older summaries will continue to be available at: http://www.perl.com/pub/q/archivep5p Thank you all. I will be in touch again around the beginning of March. Don't forget that this year is leap year! Mark-Jason Dominus Managing Editor My Life With Spam Tutorial: My Life With Spam http://www.perl.com/pub/2000/02/spamfilter.html?wwwrrr_20000209.txt In the second part of a tutorial on how to filter spam, Mark-Jason Dominus shows what to do with spam once you've caught it. Real World Perl: RSS and You http://www.perl.com/pub/2000/01/rss.html?wwwrrr_20000209.txt RSS is an XML application that describes web sites as channels, which can act as feeds to a user's site. Chris Nandor explains how to use RSS in Perl and how he uses it to build portals. Article: In Defense of Coding Standards http://www.perl.com/pub/2000/01/CodingStandards.html?wwwrrr_20000209.txt Perl programmers may bristle at the idea of coding standards. Fear not: a few simple standards can improve teamwork without crushing creativity. RSS and You http://www.perl.com/pub/2000/01/26/index.html?wwwrrr_20000209.txt [01/26/2000] In Defense of Coding Standards http://www.perl.com/pub/2000/01/12/index.html?wwwrrr_20000209.txt [01/12/2000] Sister Sites: --------------------------------- XML.com http://xml.com/ XML from the inside out. Web Review http://www.webreview.com/ The premier online resource for professionals who are working to produce the most innovative, useful, and commercially viable Web Sites today. O'Reilly and Associates http://www.oreilly.com/ O'Reilly computer books, software and online publishing. Style Sheets Guide http://style.webreview.com/ Stay on top of Cascading Style Sheets with the Spec, tutorials, and browser compatibility charts. Web Tools Buyer's Guide http://webreview.com/wr/pub/webtools/ Your comprehensive guide to products, tools and services for today's Web developer. ----------------------------------------------------------------- If you want to cancel a subscription to this newsletter, please email the word "unsubscribe" in the SUBJECT of the message to perl-update-request@lists.songline.com. NOTE: Please make certain to unsubscribe from the email address at which you receive this message For non-automated human help email perllist-admin@songline.com ----------------------------------------------------------------- _______________________________________________ http://lists.songline.com/mailman/listinfo/perl-update ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From webmaster at rochester.rr.com Tue Feb 15 15:21:33 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Anyone with experience adding DBI/DBD toActiveState Perl? In-Reply-To: Message-ID: <000a01bf77fa$a2632880$7f01a8c0@rochester.rr.com> > AFAIK, You do not need to use CPAN to get Perl modules. Activestate comes > with a Perl Package Manager. You should be using that to DL Packages from > Activestate's web site. It's probably in the docs somewhere. C:\perl\bin\ppm install DBD-Oracle quit One of the really nice things about the ActiveState installation is that it creates HTML documentation when installed, and adds to it when you add modules like DBD-Oracle. Start->Programs->ActivePerl-> documentation bookmark Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From sporter at rit.net Tue Feb 15 18:26:40 2000 From: sporter at rit.net (Shawn Porter) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] spam detection Message-ID: Here is another cool Perl script. I didn't write this one but I changed it a bit and I use it a lot. -- #!/usr/local/bin/perl $spam = ; $from = $spam; while ( ) { $spam .= $_; } if ( $from =~ /^From (.*@\S*)/ ) { $address = $1; } open(MAIL, "|/usr/sbin/sendmail $address"); print MAIL< Here's the sites I was talking about tonight at the meeting. This is the site for the people that actually make the software: http://www.smartworker.org/ Here's the site completely made of that technology: http://www.opendesk.com/ -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Thu Feb 17 22:28:09 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Newsgroup message Message-ID: <38ACCA59.9C04B0E2@directedge.com> Here's a copy of the message I just posted to the Rochester Roadrunner newsgroups. ----------------------- Join the Rochester area Perl community! You may have heard about Perl Mongers, the global organization of Perl user's groups. If not, check out http://www.pm.org. You may also not know that there is a Rochester chapter of Perl Mongers! Rochester Perl Mongers was formed to foster a local community of Perl developers. As a community, we help each other out with issues and problems, discuss general Perl and other techonlogy topics, and have meetings once a month. It's nice to be in touch with others in the area who have found the joys of Perl. So if you're an experienced Perl programmer, or still trying to figure out why Perl is not CGI, join our mailing list, come to the meetings, and get in touch with everyone. Visit the web site for information on how to join the mailing list and for a meeting schedule. http://rochester.pm.org -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Mon Feb 21 16:07:57 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] YAPC 19100: Call for Participation (fwd) Message-ID: Anyone interested? -- Brian Mathis Direct Edge http://www.directedge.com ---------- Forwarded message ---------- Date: Mon, 21 Feb 2000 16:03:52 -0500 From: Kevin Lenzo To: groups@lists.panix.com, perl-mongers-announce@pm.org Cc: lenzo+yapc@cs.cmu.edu Subject: YAPC 19100: Call for Participation Hi Mongers -- We're gearing up for it again. YAPC::America::North 19100 is in the works, and interest has been mounting in other YAPCs: Europe and Australia, with some rumour of Asia also. Here is the Call for Participation for the North American YAPC this year; it'll be 3 days long this time, but still grassroots. We'll have to cut off registration at about 500 people this time, which is almost double last year's number. I'd like to see Mongers get in early. The registration page should be up in a few weeks. Yours, kevin ***************** CALL FOR PARTICIPATION ****************** North American Yet Another Perl Conference YAPC 19100 http://www.yapc.org/America/ Wednesday-Friday, June 21-23, 2000 at Carnegie Mellon University Pittsburgh, Pennsylvania ** Abstract submission deadline: April 3, 2000 ** Yet Another Perl Conference (YAPC) is an inexpensive ($75) perl users and developers conference, with a mix of tutorials and technical talks. The conference is set in Pittsburgh, Pennsylvania, and so is relatively accessible from both the East and the Midwest. YAPC began as a grassroots users conference, from discussions among Perl Mongers, and has grown from there. We would like to invite you to join us for two days of Perl, people, and demonstrations, at a price that shouldn't hurt your wallet. There will be a limit of just under 500 people for the conference. A number of members of the Perl community are contributing to this event, including: Larry Wall, Abigail, Damian Conway, Mark-Jason Dominus, Joseph Hall, purl, Randal Schwartz, ... ... and YOU! See the CALL FOR PAPERS below! Look to the main web page for more details -- http://www.yapc.org/America ** Dorm rooms ** A limited number of inexpensive dorm rooms are available at Carnegie Mellon, that will be given preferentially to students, but more generally on a first-come basis. This is to further reduce the cost for those with limited resources, especially students, who we are trying to encourage the most. More information will become available when registration begins. *********** CALL FOR PAPERS *********** Potential presenters should submit a 200-300 word abstract to lenzo+abstract@cs.cmu.edu in plain ASCII text or HTML by April 3rd for consideration. We would like that your materials be available online, but it is not required. If you have materials to include in the proceedings, or course notes, please let us know your requirements the abstract. If you have any special presentation needs, please include them also. Topics are unlimited, but some suggestions include: * Groupware, Agents, and Bots * Perl for Speech and Language * Text and Document Processing * Machine Learning in Perl * HTML, XML, and Markup Languages * CGI and Web programming in Perl * Internet Programming * Database Interation and Access with Perl * Scientific Computing (e.g. with PDL) * Practical Perl Programming * Module guts and usage on any particular Module. * Tutorials of all stripes: Modules, Objects, CPAN * Visionary or position papers on Perl, the past, the present, and the future * Anything cool :) Conference fees will be waived for presenters at yapc, so another way to reduce your costs is to give a good talk on something you're excited about. **** YAPC 100 ** http://www.yapc.org/America/ ******** ***************** CALL FOR PARTICIPATION ****************** **Majordomo list services provided by PANIX ** **To Unsubscribe, send "unsubscribe groups" to majordomo@lists.pm.org** ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Wed Feb 23 09:17:40 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] CPAN through a proxy Message-ID: We were talking last week at the meeting about getting the CPAN module to work through a proxy. Usually, this works, unless you need to authenticate through it, which I was never able to get working. Well, I figured it out (I thought I tried this before, but I guess not). Create a shell script somewhere, I called it 'lynx.sh' #!/bin/sh /usr/local/bin/lynx -pauth=username:password $* END Then, when configuring the CPAN module, it asks for the lynx location. Point it to this shell script instead of the lynx binary. Make sure you chmod +x on the shell script. -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From webmaster at rochester.rr.com Thu Feb 24 15:17:56 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] training In-Reply-To: Message-ID: <000001bf7f0c$9ec1cf60$7f01a8c0@rochester.rr.com> Are there any local places that offer training/classes on things Perl? I'm also interested in other common resources like Apache, etc. I ask this because I've been learning as much as possible on my own, but it would be nice to have something quantifiable. Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From fedm at pkcommunications.com Thu Feb 24 15:25:04 2000 From: fedm at pkcommunications.com (Fred Edmister) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Email address Message-ID: <4.2.0.58.20000224162436.00abd600@mail1.pkcommunications.com> To change my email, do I unsubscribe and resubscribe, or is there a place to change it? ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From Craig.Steinberger at usa.xerox.com Thu Feb 24 15:51:34 2000 From: Craig.Steinberger at usa.xerox.com (Steinberger, Craig J) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] training Message-ID: <58BE2730680ED3118E6700805FC796A621AFEC@USA0102MS1> I think Sun offers their Perl training class in Rochester. -Craig -----Original Message----- From: Justin C. Sherrill [mailto:webmaster@rochester.rr.com] Sent: Thursday, February 24, 2000 4:18 PM To: rochester-pm-list@happyfunball.pm.org Subject: [rochester-pm-list] training Are there any local places that offer training/classes on things Perl? I'm also interested in other common resources like Apache, etc. I ask this because I've been learning as much as possible on my own, but it would be nice to have something quantifiable. Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Thu Feb 24 16:11:22 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] Email address In-Reply-To: <4.2.0.58.20000224162436.00abd600@mail1.pkcommunications.com> Message-ID: On Thu, 24 Feb 2000, Fred Edmister wrote: > To change my email, do I unsubscribe and resubscribe, or is there a place > to change it? > Just unsubscribe from 1 account and subscribe from the other. You can send requests like this to owner-rochester-pm-list@pm.org, instead of the whole list, or directly to me. -- Brian Mathis Direct Edge http://www.directedge.com ---------- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Thu Feb 24 23:31:43 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] training References: <000001bf7f0c$9ec1cf60$7f01a8c0@rochester.rr.com> Message-ID: <38B613BF.C4492D6C@directedge.com> "Justin C. Sherrill" wrote: > > Are there any local places that offer training/classes on things Perl? > I'm also interested in other common resources like Apache, etc. > > I ask this because I've been learning as much as possible on my own, but > it would be nice to have something quantifiable. > > Justin C. Sherrill Maybe ZDU? They have an office around here somewhere. Here's what a search at the web site turns up: http://www.zdu.com/CourseCatalog/search_results.asp?f_intLibraryID=1&f_strSearchString=perl I'm pretty sure it's ZDU around here.. I always hear people at work talking about going to training at "Ziff-Davis". -- Brian Mathis Direct Edge http://www.directedge.com - For information on unsubscribing from this list, please visit http://rochester.pm.org From rmd0549 at ritvax.isc.rit.edu Fri Feb 25 01:01:12 2000 From: rmd0549 at ritvax.isc.rit.edu (rmd) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] PERL in ASP References: <000001bf7f0c$9ec1cf60$7f01a8c0@rochester.rr.com> <38B613BF.C4492D6C@directedge.com> Message-ID: <000d01bf7f5e$199c72c0$12911581@rh.rit.edu> Hey guys and girls, I don't post much to this list anymore because my interest in PERL has been fading until recently. I was working on a project for a client and realized that I couldn't do it without PERL! You see, I have been using ASP almost exclusively with VBScript because it's usually the easiest way to get things done in ASP, but in this case, I needed some functionality that VBScript couldn't provide, namely, grabbing the raw html code from a remote site. PERL was perfectly suited for this, and I promptly embedded it into my ASP - worked like a charm. Granted, I could have written a COM object or bought one that was already written to acheive the same goal, but PERL was there for me. My question is, how many of you use ASP with PERL instead of VBScript or JavaScript? What are some of the advantages you have discovered? Disadvantages? I'm just curious since there are still several ways in which PERL trumpts VBScript in functionality, and I am sure there are some nifty tricks some of you have thought up to use this functionality in an ASP. Thanks, Robert Downey - For information on unsubscribing from this list, please visit http://rochester.pm.org From webmaster at rochester.rr.com Fri Feb 25 08:25:12 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:16 2004 Subject: [rochester-pm-list] PERL in ASP In-Reply-To: <000d01bf7f5e$199c72c0$12911581@rh.rit.edu> Message-ID: <000201bf7f9c$2043c040$7f01a8c0@rochester.rr.com> > My question is, how many of you use ASP with PERL instead of VBScript or > JavaScript? What are some of the advantages you have discovered? > Disadvantages? I'm just curious since there are still several > ways in which > PERL trumpts VBScript in functionality, and I am sure there are > some nifty > tricks some of you have thought up to use this functionality in an ASP. I've used it a few times, because I've got a legacy IIS system, and had good results. I'd really like to move to a setup where I can use mod_perl, however, as it seems to have some advantages. Justin C. Sherrill Rochester Road Runner Webmaster http://www.rochester.rr.com/ "Think slow, type fats" - For information on unsubscribing from this list, please visit http://rochester.pm.org