From charles at mckeanmachinery.com Fri Mar 3 07:52:39 2000 From: charles at mckeanmachinery.com (Charles Rishel) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( Message-ID: Hi everyone, About 2 weeks ago I posted a script that I made to delete image files from a directory, reading the list of files to delete from a text file. This works beautifully on Perl Version 5, which one of our web-servers uses, and I have ActivePerl V5 on the Windows machine to automate the process on my workstation. But our other web-server is utilizing Perl Version 4, and the script aborts at line 22 (at the call for chomp( ) and I have no clue of the differences between Perl V4 and Perl V5. If anyone can provide me with some pointer as to where I can find the information that I need to fix this problem, I would be very grateful. I will repost the script again for reference. Thanks, 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. - For information on unsubscribing from this list, please visit http://rochester.pm.org From havoc at shell1.eznet.net Fri Mar 3 08:33:46 2000 From: havoc at shell1.eznet.net (Pat) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( In-Reply-To: ; from Charles Rishel on Fri, Mar 03, 2000 at 08:52:39AM -0500 References: Message-ID: <20000303093346.B9058@shell1.eznet.net> On Fri, Mar 03, 2000 at 08:52:39AM -0500, Charles Rishel wrote: > Hi everyone, > > About 2 weeks ago I posted a script that I made to delete image files from a directory, reading the list of files to delete from a text file. > This works beautifully on Perl Version 5, which one of our web-servers uses, and I have ActivePerl V5 on the Windows machine to automate > the process on my workstation. But our other web-server is utilizing Perl Version 4, and the script aborts at line 22 (at the call for chomp( ) > and I have no clue of the differences between Perl V4 and Perl V5. If anyone can provide me with some pointer as to where I can find the > information that I need to fix this problem, I would be very grateful. Replace chomp with chop and you're program should work fine. The difference is minor in your case. chomp => remove trailing newlines chop => removes last character I didn't see any other problems with your program in a brief look. You might try perl 4 to 5 traps at http://language.perl.com/all_about/perl425.html for more details. Also, perl4 is old and unsupported, upgrading to perl5 is your best bet! --Patrick Ludwig - For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Fri Mar 3 09:21:48 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( In-Reply-To: Message-ID: On Fri, 3 Mar 2000, Charles Rishel wrote: > Hi everyone, > > About 2 weeks ago I posted a script that I made to delete image files from a directory, reading the list of files to delete from a text file. > This works beautifully on Perl Version 5, which one of our web-servers uses, and I have ActivePerl V5 on the Windows machine to automate > the process on my workstation. But our other web-server is utilizing Perl Version 4, and the script aborts at line 22 (at the call for chomp( ) > and I have no clue of the differences between Perl V4 and Perl V5. If anyone can provide me with some pointer as to where I can find the > information that I need to fix this problem, I would be very grateful. > I will repost the script again for reference. > Thanks, > > Charles K. Rishel The standard #perl (irc) answer to this is: Upgrade your perl. Seriously, perl 4 is over 10 years old now. Depending on how much that server gets used, I'm surprised you haven't run into problems with it already. Everything is backwards compatible, so your perl4 scripts should still work fine. -- 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 Fri Mar 3 10:26:58 2000 From: charles at mckeanmachinery.com (Charles Rishel) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( Message-ID: Thanks for the advice, I would prefer the upgrade to Perl V5, but we have our Web-site hosted 'out of house' and do not have root priviledge. I will go with the replacement you suggest and ask the server admin to upgrade the system to Perl V5. Thanks again, Charles Rishel On 03/03/2000 9:33:46 AM, Pat wrote: >Replace chomp with chop and you're program should work fine. >The difference is minor in your case. >chomp => remove trailing newlines >chop => removes last character > >I didn't see any other problems with your program in a brief look. > >You might try perl 4 to 5 traps at http://language.perl.com/all_about/perl425.html for more details. > >Also, perl4 is old and unsupported, upgrading to perl5 is your best bet! > >--Patrick Ludwig > >- >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 Fri Mar 3 11:18:37 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( In-Reply-To: Message-ID: On Fri, 3 Mar 2000, Charles Rishel wrote: > Thanks for the advice, > I would prefer the upgrade to Perl V5, but we have our Web-site hosted 'out of house' and do not have root priviledge. I will go with the > replacement you suggest and ask the server admin to upgrade the system to Perl V5. > Thanks again, > Charles Rishel If they won't upgrade it, get a new ISP. Really. Usually a refusal to perform a relatively simple task like installing Perl 5 is an indication that the ISP doesn't really know what they're doing. ISPs are a dime a dozen, and there are plenty out there that do know what they're doing. Of course, they might actually have perl 5 on there, possibly named 'perl5', not 'perl'. Another indication is if they won't give you telnet access to a UNIX server, under the guise that "it's a security problem". It really isn't a security problem, unless, of course, they have not set things up correctly. -- 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 Fri Mar 3 11:58:19 2000 From: webmaster at rochester.rr.com (Justin C. Sherrill) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( In-Reply-To: Message-ID: <000301bf853a$0eca4e80$7f01a8c0@rochester.rr.com> > If they won't upgrade it, get a new ISP. Really. Usually a refusal to > perform a relatively simple task like installing Perl 5 is an indication > that the ISP doesn't really know what they're doing. ISPs are a dime > a dozen, and there are plenty out there that do know what they're doing. That leads to a new question - what good hosting-only ISPs are out there? I have been using digiweb.com for my personal website for a few years now, and it's been a bit problematic lately.. I don't need an Internet connection, as I've got plenty of that right now, but just a place to host web sites and handle mail. What are other people using? (to keep this on-topic, hosts that run perl or even mod_perl are best.) 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 bmathis at directedge.com Fri Mar 3 13:26:43 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( In-Reply-To: <000301bf853a$0eca4e80$7f01a8c0@rochester.rr.com> Message-ID: On Fri, 3 Mar 2000, Justin C. Sherrill wrote: > That leads to a new question - what good hosting-only ISPs are out there? > I have been using digiweb.com for my personal website for a few years now, > and it's been a bit problematic lately.. > > I don't need an Internet connection, as I've got plenty of that right now, > but just a place to host web sites and handle mail. What are other people > using? (to keep this on-topic, hosts that run perl or even mod_perl are > best.) > > Justin C. Sherrill Hell, who cares if it's on topic, the list gets so much traffic.. I don't think it's a problem :). Anyway, I currently use valuetech.com, and they have been pretty good. Reasonably responsive whenever I have any issues. They are based in Virginia I think. The response when telnetting seems to be a little slow, but the web site always seems to run real fast. They are running on cobalt servers, which is pure, up to date linux. I was also looking at places around here, and found Verio to be pretty good. They don't necessarily list all the stuff they have on the web site, but if you call them up and say "I want an account with telnet access, perl5, etc., they'll give it to you. Both places are about $30 a month (that's with a domain name and everything), but it also looks like they have some cheaper plans too. There's tons of other listings at http://www.budgetweb.com/. I found valuetech listed there, and have been pretty happy with them. -- 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 Fri Mar 3 14:01:47 2000 From: charles at mckeanmachinery.com (Charles Rishel) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Script won't run on Perl Version 4 :-( Message-ID: Well, The suggested change in the program worked fine, and it is now a perl 4 program I guess LOL. Well, I have come to find out that they actually do have Perl V5 installed, I was looking in /usr/bin though and they have '/usr/bin/perl' and '/usr/bin/perl4' in that directory. I entered 'perl -v' and found that both are Perl V4. I did not however look in '/usr/local/bin' for perl as I had found it in '/usr/bin/'. Version 5 is located in '/usr/local/bin/' so, once I changed the beginning of my program to read #!/usr/local/bin/perl, I could execute the script from the directory I was in. Thanks for the help in getting it to work with Version 4 though :-) BTW, Our alternate site is hosted by Pair.com, and I have found them to be very dependable, It runs our company around $370/year. I have full FTP and Telnet access to the account, and it is quite fast when logged on through DOS. You can access their list of installed Perl Modules using this link. You all know a lot more about these modules than I do, I am happy to just learn scripting with perl at this point :-) Anyways, Here is the link, and thanks again. http://support.pair.com/config/perlmods.html Charles Rishel On 03/03/2000 12:18:37 PM, Brian Mathis wrote: >On Fri, 3 Mar 2000, Charles Rishel wrote: >> Thanks for the advice, >> I would prefer the upgrade to Perl V5, but we have our Web-site hosted 'out of house' and do not have root priviledge. I will go with the >> replacement you suggest and ask the server admin to upgrade the system to Perl V5. >> Thanks again, >> Charles Rishel > >If they won't upgrade it, get a new ISP. Really. Usually a refusal to >perform a relatively simple task like installing Perl 5 is an indication >that the ISP doesn't really know what they're doing. ISPs are a dime >a dozen, and there are plenty out there that do know what they're doing. > >Of course, they might actually have perl 5 on there, possibly named >'perl5', not 'perl'. > >Another indication is if they won't give you telnet access to a UNIX >server, under the guise that "it's a security problem". It really isn't a >security problem, unless, of course, they have not set things up >correctly. > >-- >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 Mon Mar 13 09:17:46 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] Meeting reminder Message-ID: There is a meeting this Wednesday at Monty's crown. As always, for info on how to get there, check the web site http://rochester.pm.org. Hope to see you there! -- 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 Mar 21 11:30:54 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] www.perl.com: My Life with Spam (fwd) Message-ID: www.perl.com update -------------------------------------- The Email for www.perl.com Subscribers ============================================================ Sponsored by Active.com We need rock stars! Active.com and LeagueLink.com offer $$$, pre-IPO stock options, perks, fun culture, and wicked smart peers for superhero Perl developers. OO Perl expertise and fearsome brainpower are absolute musts. Unix, SQL, mucho experience, tech diversity (eg Java, C++) are important too. Near Boulder CO, will relocate. Email jobs@leaguelink.com ============================================================ Hello, perl.com subscribers. New Perl Looming I'm excited this week because at long last, a new major release of Perl is imminent, the long-awaited successor to 5.005. One of the things that has changed is the version numbering system, so the new release will be numbered 5.6.0 instead of 5.006. 5.6.0 is in its final trial stages now. The biggest news about 5.6.0 is that all the threading code has changed, and one side-effect of this is that the fork() call is emulated even on fork-less Windows systems. We have Gurusamy Sarathy to thanks for this piece of wizardry. When 5.6.0 is fully released, www.perl.com will carry the full announcement and a description of the new features. More Spam Filtering Part 3 of my series abut spam filtering is on the web site now at http://www.perl.com/pub/2000/03/spam3.html. The article discusses how my spam filter keeps a blacklist, a whitelist, and a loser list. It talks about the hazards of false positive results in your filter tests, and how I had a minor financial disaster because of it. Return of Perlland Long ago Tom used to contribute to the www.perl.com web site. But recently he's been busy, and his section on the main page, `Perlland', hadn't been updated since last July. I missed hearing Tom's technical reports and opinions about Perl, but I knew he was too busy with the new Camel book to write anything. So I asked him if it would be okay if I posted some of my own thoughts in Perlland, and he agreed. This week, the first of these pieces appears there. I tried to write on topics that I thought Tom might have chosen. This week's piece: ``POD is not Literate Programming!'' Who said it was? Lots of people. What is literate programming? Read the article. http://www.perl.com/tchrist/litprog.html More p5p Summaries Regular summaries of p5p have resumed, and things are quite busy on the list. Partly this is because of all the work that's being done on 5.6.0, and partly it's because Tom Christiansen is working hard on a new edition of _Programming Perl_, and sends in bug reports and clarifications every day. Thank you all. I will probably be in touch again in early April. Mark Dominus Managing Editor My Life with Spam Tutorial: My Life With Spam: Part 3 http://www.perl.com/pub/2000/03/spam3.html?wwwrrr_20000315.txt In the third part of a tutorial on how to filter spam, Mark-Jason Dominus reveals how he relegates mail to his "losers list, blacklist and whitelist." Article: Ten Perl Myths http://www.perl.com/pub/2000/01/10PerlMyths.html?wwwrrr_20000315.txt Ten things that people like to say about Perl that aren't true. Tutorial: My Life With Spam http://www.perl.com/pub/2000/02/spamfilter.html?wwwrrr_20000315.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. Ten Perl Myths http://www.perl.com/pub/2000/02/23/index.html?wwwrrr_20000315.txt [02/23/2000] My Life With Spam http://www.perl.com/pub/2000/02/09/index.html?wwwrrr_20000315.txt [02/09/2000] Sister Sites: --------------------------------- O'Reilly Network http://www.oreillynet.com The Source for Open and Emerging Technologies oreilly.linux.com http://oreilly.linux.com The Source for the Linux Information You Need Style Sheets Guide http://style.webreview.com/ Stay on top of Cascading Style Sheets with the Spec, tutorials, and browser compatibility charts. 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. The Source for Perl http://www.perl.com/ The central Web site for the Perl community. Web Tools Buyer's Guide http://webreview.com/wr/pub/webtools/ Your comprehensive guide to products, tools and services for today's Web developer. O'Reilly and Associates http://www.oreilly.com O'Reilly computer books, software and online publishing. ----------------------------------------------------------------- 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.oreillynet.com/mailman/listinfo/perl-update -- For information on unsubscribing from this list, please visit http://rochester.pm.org From bmathis at directedge.com Wed Mar 22 12:14:28 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] perl 5.6 is out! Message-ID: Perl 5.6 was released today. The release: http://www.news.perl.org/perl-news.cgi?item=953809914%7C9235 What's new? http://search.cpan.org/doc/GSAR/perl5.005_63/pod/perldelta.pod Download: http://www.cpan.org/authors/id/GSAR/perl-5.6.0.tar.gz Have fun! :) -- 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 Mar 27 20:03:13 2000 From: bmathis at directedge.com (Brian Mathis) Date: Thu Aug 5 00:19:17 2004 Subject: [rochester-pm-list] [Fwd: YAPC 19100: Call for Participation (2)] Message-ID: <38E012E1.EB241F61@directedge.com> Anyone interested? -------- Original Message -------- From: Kevin Lenzo Subject: YAPC 19100: Call for Participation (2) To: groups@lists.panix.com, perl-mongers-announce@pm.org CC: pgh-pm@cs.cmu.edu ***************** 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. ** Location ** YAPC is at Carnegie Mellon University in Pittsburgh, Pennsylvania once again this year, in the University Center. We have the Rangos rooms, 1,2 and 3 once again, as well as McConomy Auditorium,the Conan Room, and some small rooms set aside. This year there will be an email garden. ** Registration ** Registration will open shortly after the abstract submission deadline. Please watch for the announcements on the web page at http://www.yapc.org/America/. *********** 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. Talks can be 20 minutes, 40 minutes, or 90 minutes long; that's actually 20 + 2.5 minutes to change over, 40 + 5 minutes to change, and 90 + 0 minutes to change over, so questions are included in the these times. Please specify the amount of time you'd like for your talk. 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