From m3047 at inwa.net Thu Jul 1 02:54:50 2004 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Mod-perl job Message-ID: Wait a sec, is it LEGAL for some out of state outfit to advert a job here? I mean, come one: especially a place like CA. Tim: if you're not careful they'll bite your ass for nexus. Just tell 'em the Blackhawk Auto Museum is nice, but you don't wanna live there. Bye now! -- Fred Morris (my I-ACK rabbit) m3047@inwa.net From tim at consultix-inc.com Thu Jul 1 09:12:39 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Mod-perl job In-Reply-To: References: Message-ID: <20040701141239.GA16097@jumpy.consultix-inc.com> On Thu, Jul 01, 2004 at 12:54:50AM -0700, Fred Morris wrote: > Wait a sec, is it LEGAL for some out of state outfit to advert a job here? The /job/ is located in Seattle. -- *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From tim at consultix-inc.com Mon Jul 5 15:16:53 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Bug in shebang parsing? Message-ID: <20040705201653.GA20715@jumpy.consultix-inc.com> I've either found a bug in Perl, or there's an undocumented "feature" that I've suddenly run into for the first time. Either way, /I don't like it/! 8-{ In short, a parsing rule (or bug) seems to be operating that says after two (or more) spaces are seen on the shebang line, no additional options are recognized! So when one tries to use -s for switch processing, and that switch is preceded by two spaces, the result is that the -switch=whatever argument is /retained/ on the command line, rather than used to set a variable! When the -w option is in the ignored position, that fails to enable warnings. AFAIK, this is not documented behavior, and IMHO, it is not /desirable/ behavior. I've included sample programs and output below, and confirmed that the same results are obtained with Perl versions 5.8.4 and 5.8.2. Does anybody have an older Perl version handy to test? Does anybody think this is not a bug? Any insights appreciated. -Tim Maher tim@teachmeperl.com PROGRAMS: The _sw ending on a test program means the -s option is first, and the -w second, and so forth. The program invocation in each case is "./scriptname -switch", which should set the $switch variable in the script to 1. Note that there's nothing switch-specific about this "two-space" bug -- that's just the context in which I originally found it, and it demonstrates the faulty behavior well, by (erroneously) leaving the -switch argument in @ARGV, and triggering a "possible typo" warning regarding $switch in that case. 2004-07-05 12:31 one_space_sw Page 1 #! /usr/bin/perl -s -w $switch == 1; warn "Arguments are: @ARGV"; 2004-07-05 12:31 one_space_ws Page 1 #! /usr/bin/perl -w -s $switch == 1; warn "Arguments are: @ARGV"; 2004-07-05 12:32 two_spaces_sw Page 1 #! /usr/bin/perl -s -w $switch == 1; warn "Arguments are: @ARGV"; 2004-07-05 12:32 two_spaces_ws Page 1 #! /usr/bin/perl -w -s $switch == 1; warn "Arguments are: @ARGV"; OUTPUT: RUNNING 'one_space_sw': Useless use of numeric eq (==) in void context at ./one_space_sw line 3. Arguments are: at ./one_space_sw line 5. (That's the correct result; warnings enabled, and switch-argument processed) RUNNING 'one_space_ws': Useless use of numeric eq (==) in void context at ./one_space_ws line 3. Arguments are: at ./one_space_ws line 5. (That's the correct result; warnings enabled, and switch-argument processed) RUNNING 'two_spaces_sw': Arguments are: at ./two_spaces_sw line 5. (That's the WRONG result; warnings DISabled, and switch-argument processed) RUNNING 'two_spaces_ws': Useless use of numeric eq (==) in void context at ./two_spaces_ws line 3. Name "main::switch" used only once: possible typo at ./two_spaces_ws line 3. Use of uninitialized value in numeric eq (==) at ./two_spaces_ws line 3. Arguments are: -switch at ./two_spaces_ws line 5. (That's the WRONG result; warnings enabled, and switch-argument NOT processed) ============================================================== | Tim Maher, Ph.D. tim(AT)TeachMePerl.com | | SPUG Leader Emeritus spug(AT)TeachMePerl.com | | Seattle Perl Users Group http://www.SeattlePerl.com | | SPUG Wiki Site http://Spugwiki.Perlocity.org | | Perl Certification Site http://Perlcert.Perlocity.org | ============================================================== From m3047 at inwa.net Mon Jul 5 18:36:25 2004 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Bug in shebang parsing? Message-ID: m3047@devil:~ > perl -v This is perl, version 5.005_03 built for i586-linux Copyright 1987-1999, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. m3047@devil:~ > #! /usr/bin/perl -s -w m3047@devil:~ > $switch == 1; bash: ==: command not found m3047@devil:~ > warn "Arguments are: @ARGV"; bash: warn: command not found m3047@devil:~ > # :-p m3047@devil:~ > cd perl m3047@devil:~/perl > mkdir tim-space m3047@devil:~/perl > cd tim-space m3047@devil:~/perl/tim-space > cat > one_space_sw #! /usr/bin/perl -s -w $switch == 1; warn "Arguments are: @ARGV"; m3047@devil:~/perl/tim-space > chmod a+x * m3047@devil:~/perl/tim-space > ./one_space_sw Useless use of numeric eq in void context at ./one_space_sw line 2. Name "main::switch" used only once: possible typo at ./one_space_sw line 2. Use of uninitialized value at ./one_space_sw line 2. Arguments are: at ./one_space_sw line 3. m3047@devil:~/perl/tim-space > cat > one_space_ws #! /usr/bin/perl -w -s $switch == 1; warn "Arguments are: @ARGV"; m3047@devil:~/perl/tim-space > chmod a+x * m3047@devil:~/perl/tim-space > ./one_space_ws Useless use of numeric eq in void context at ./one_space_ws line 2. Name "main::switch" used only once: possible typo at ./one_space_ws line 2. Use of uninitialized value at ./one_space_ws line 2. Arguments are: at ./one_space_ws line 3. m3047@devil:~/perl/tim-space > cat > two_spaces_sw #! /usr/bin/perl -s -w $switch == 1; warn "Arguments are: @ARGV"; m3047@devil:~/perl/tim-space > chmod a+x * m3047@devil:~/perl/tim-space > ./two_spaces_sw Arguments are: at ./two_spaces_sw line 3. m3047@devil:~/perl/tim-space > cat > two_spaces_ws #! /usr/bin/perl -w -s $switch == 1; warn "Arguments are: @ARGV"; m3047@devil:~/perl/tim-space > chmod a+x * m3047@devil:~/perl/tim-space > ./two_spaces_sw Arguments are: at ./two_spaces_sw line 3. m3047@devil:~/perl/tim-space > HTH... -- Fred Morris fredm3047@inwa.net (I-ACK) From m3047 at inwa.net Mon Jul 5 18:50:43 2004 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:22 2004 Subject: D'oh! Re: SPUG: Bug in shebang parsing? Message-ID: >m3047@devil:~/perl/tim-space > cat > two_spaces_ws >#! /usr/bin/perl -w -s >$switch == 1; >warn "Arguments are: @ARGV"; >m3047@devil:~/perl/tim-space > chmod a+x * >m3047@devil:~/perl/tim-space > ./two_spaces_sw >Arguments are: at ./two_spaces_sw line 3. >m3047@devil:~/perl/tim-space > m3047@devil:~/perl/tim-space > ./two_spaces_ws Useless use of numeric eq in void context at ./two_spaces_ws line 2. Name "main::switch" used only once: possible typo at ./two_spaces_ws line 2. Use of uninitialized value at ./two_spaces_ws line 2. Arguments are: at ./two_spaces_ws line 3. m3047@devil:~/perl/tim-space > From tim at consultix-inc.com Mon Jul 5 18:54:47 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Bug in shebang parsing? In-Reply-To: References: Message-ID: <20040705235447.GA21979@jumpy.consultix-inc.com> On Mon, Jul 05, 2004 at 04:36:25PM -0700, Fred Morris wrote: > m3047@devil:~ > perl -v > > This is perl, version 5.005_03 built for i586-linux > > Copyright 1987-1999, Larry Wall > > Perl may be copied only under the terms of either the Artistic License or the > GNU General Public License, which may be found in the Perl 5.0 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using `man perl' or `perldoc perl'. If you have access to the > Internet, point your browser at http://www.perl.com/, the Perl Home Page. Your first test section below seems to prove that the bash shell doesn't interpret Perl code very well, which is gratifying to see 8-} (Shebang lines typed interactively don't do what they do in scripts). And with the script tests that follow, my recommended invocation is: "./scriptname -switch" , so you can see if the switch argument gets removed from @ARGV (or not). Despite these niggles, it appears that the "perl -w -s" invocation didn't even get the -w option enabled in your 5.005_03 tests, which at least works in the newer versions I tried (although the -s was still ignored). -Tim > m3047@devil:~ > #! /usr/bin/perl -s -w > m3047@devil:~ > $switch == 1; > bash: ==: command not found > m3047@devil:~ > warn "Arguments are: @ARGV"; > bash: warn: command not found > m3047@devil:~ > # :-p > m3047@devil:~ > cd perl > m3047@devil:~/perl > mkdir tim-space > m3047@devil:~/perl > cd tim-space > m3047@devil:~/perl/tim-space > cat > one_space_sw > #! /usr/bin/perl -s -w > $switch == 1; > warn "Arguments are: @ARGV"; > m3047@devil:~/perl/tim-space > chmod a+x * > m3047@devil:~/perl/tim-space > ./one_space_sw > Useless use of numeric eq in void context at ./one_space_sw line 2. > Name "main::switch" used only once: possible typo at ./one_space_sw line 2. > Use of uninitialized value at ./one_space_sw line 2. > Arguments are: at ./one_space_sw line 3. > m3047@devil:~/perl/tim-space > cat > one_space_ws > #! /usr/bin/perl -w -s > $switch == 1; > warn "Arguments are: @ARGV"; > m3047@devil:~/perl/tim-space > chmod a+x * > m3047@devil:~/perl/tim-space > ./one_space_ws > Useless use of numeric eq in void context at ./one_space_ws line 2. > Name "main::switch" used only once: possible typo at ./one_space_ws line 2. > Use of uninitialized value at ./one_space_ws line 2. > Arguments are: at ./one_space_ws line 3. > m3047@devil:~/perl/tim-space > cat > two_spaces_sw > #! /usr/bin/perl -s -w > $switch == 1; > warn "Arguments are: @ARGV"; > m3047@devil:~/perl/tim-space > chmod a+x * > m3047@devil:~/perl/tim-space > ./two_spaces_sw > Arguments are: at ./two_spaces_sw line 3. > m3047@devil:~/perl/tim-space > cat > two_spaces_ws > #! /usr/bin/perl -w -s > $switch == 1; > warn "Arguments are: @ARGV"; > m3047@devil:~/perl/tim-space > chmod a+x * > m3047@devil:~/perl/tim-space > ./two_spaces_sw > Arguments are: at ./two_spaces_sw line 3. What? The warnings don't seem to have been enabled for this script. How could that be, with -w -s? Looks like 5.005_03 has an even more serious version of this bug. > m3047@devil:~/perl/tim-space > > > > HTH... > > -- > > Fred Morris > fredm3047@inwa.net (I-ACK) > > > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location Unknown > WEB PAGE: http://www.seattleperl.org -- *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | UPCOMING CLASSES: "UNIX Fundamentals for Power Users", 6/28-7/1, Seattle | | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From tallpeak at hotmail.com Mon Jul 5 19:03:04 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Fw: ML SIG Seattle Thursday July 8 Message-ID: Off-topic, but in case anyone is interested in ML languages. (bagley.org inspired my interest) ----- Original Message ----- From: "Brandon J. Van Every" Newsgroups: comp.lang.functional Sent: Friday, July 02, 2004 10:23 AM Subject: ML SIG Seattle Thursday July 8 ML SIG Seattle is a gathering of people interested in the ML family of functional programming languages. These include Standard ML, OCaml, and other such. We will meet Thursday, July 8, at 7:00 pm at The Stumbling Monk 1635 E. Olive Way at corner of Olive and Belmont kitty corner from the B&O Restaurant (206)-860-0916 Beware that the advertizement as seen from the street is extremely low key. The sign in the window is hardly noticeable and the awning above the front door still says "TYPING" on it. Due to the popularity of the rotating specialty brews offered, the owner really has no need for additional salesmanship. I imagine if you ask the locals, they can point you at it. Especially local shopkeepers. Things to know about The Monk: - it serves yummy Belgian beers! - it is non-smoking - it isn't very big - it's low-lit - they have chips, feel free to order a pizza from elsewhere - parking is typical Capitol Hill parking, i.e. bad Non-exhaustive topics of interest to me personally: - OCaml - SML/NJ - MLton - how well these things work on Windows - optimization rigamaroles, profiling - interfacing to C - 3D graphics - OpenGL bindings - AI - game development - functional vs. imperative vs. OO programming - commercialization - making money Cheers, www.indiegamedesign.com Brandon Van Every Seattle, WA "The pioneer is the one with the arrows in his back." - anonymous entrepreneur From m3047 at inwa.net Mon Jul 5 20:01:36 2004 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Bug in shebang parsing? Message-ID: I vaguely recall something from the entrails in the 5.5.3 timeframe about option parsing being weak, but I haven't the foggiest recollection of where. (Inline::C is cool. Probably 10 years now instead of 500.. you know who you are.) (must learn POE!) -- Fred Morris fredm3047@inwa.net (I-ACK) From andrew at sweger.net Tue Jul 6 23:26:38 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: Free Stas Bekman tutorial: "mod_perl 2.0 by example" Message-ID: This free tutorial, sponsored by ActiveState, will be this Saturday in Vancouver, BC. Details below: Stas Bekman tutorial: "mod_perl 2.0 by example" mod_perl integrates the power of Perl with the flexibility and stability of the Apache Web server. Join Stas Bekman, co-author of O'Reilly's "Practical mod_perl," for a free tutorial on getting started with mod_perl 2.0. ************************************************ Topic: mod_perl 2.0 by example Speaker: Stas Bekman When: 1-5 PM, Saturday, July 10, 2004 Where: ActiveState/Sophos, 580 Granville Street, Vancouver, BC ************************************************ In this tutorial, Stas Bekman will focus on the highlights of mod_perl 2.0, expanding on the the things you thought you knew from mod_perl 1.0 with lots of examples from the completely rewritten 2.0 release. Topics will include: * Getting your feet wet * A quick introduction to mod_perl 2.0 * Startup handlers * Protocol handlers * Filter handlers * HTTP request handlers * Migrating from mod_perl 1.0 to 2.0 For those who want to do their homework (advisable!), handouts and slides are available at http://stason.org/talks/. Speaker Bio Stas Bekman is the co-author of O'Reilly's "Practical mod_perl" and a core developer on mod_perl 2.0. He is a member of the Apache Software Foundation and a popular speaker at the O'Reilly Open Source Conference. Stas is also a regular author for Perl.com. From andrew at sweger.net Sat Jul 10 21:55:58 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:22 2004 Subject: SPUG: show-and-tell for August? Message-ID: Would anyone like to share a Perl project at the August SPUG meeting? If you're not sure you've got something worth sharing, ask me off list. (I'll probably say yes.) -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From andrew at sweger.net Thu Jul 15 12:20:14 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 Message-ID: Hey! Don't forget next Tuesday is SPUG with Autrijus Tang. What's he going to talk about? Does it matter? Okay, it probably does to many people. But I don't have that information yet, so plan on showing up and at least meeting other SPUGgers. PGP/GnuPG Key Signing --------------------- For those who are interested, we'll make a little time to exchange key fingerprints and government issued identification documents. For those new to the world of key signing, I'll direct you to the information posted[1] at GSLUG's web site (who stole it from TACLUG anyway). July Seattle Perl Users Group (SPUG) Meeting ============================================ Title: TBD Speakers: Autrijus Tang Meeting Date: Tuesday, July 20, 2004 Meeting Time: 7:00 - 9:00 p.m. (networking 6:30 - 7:00) Location: Geospiza 3411 Thorndyke Avenue West (See directions below) Cost: Admission is free and open to the general public Info: http://www.seattleperl.org/ =========================================== Autrijus Tang: Born in 1981 CE, Autrijus is a self-educated i18n geek, net a(ctiv|narch|rt)ist, and serial entrepreneur. While not busily translating Free Software and related books to Chinese, autrijus engages in Open Source and wearable computing advocacy. In a very short period of time, he has managed to publish a healthy collection[2] of Perl modules, many dealing with i18n issues. Additionally, he has made significant contributions to bringing the beast that is Perl module distribution and the CPAN to a more orderly world. We currently do not have a topic from our speaker, but I have it on good authority that this is definitely not a concern. The only concern might be that our meeting will be on the same day as his arrival in Seattle. But he wouldn't be the first crazy out-of-town speaker to do this. A big thanks to many of the folks at Geospiza (a Life Science company, and big Perl user) for stepping up to hosting the SPUG meeting. [1] - http://www.gslug.org/pgp.html [2] - http://search.cpan.org/~autrijus/ ================================================================ Directions to Geospiza: ----------------------- Geospiza 3411 Thorndyke Ave. W Seattle, WA 98119 By carpool: (send requests to spug-list@pm.org) ----------- Definately a more fun way to spend the driving time. By Bus: (http://transit.metrokc.gov/) ------- The 15 & 18 stop at West Dravus Street on 15th Avenue The 44, 46 get to Ballard at Market St & 15th Ave (1/2 mile walk, xfer to 15 or 18 at Walgreen's, request a pick-up) The 75 gets to Ballard 4 blocks from Walgreens (see 44, 46) The 17 stops south of the Ballard Bridge Coming from I5: --------------- 1 - EXIT onto 50th Street toward Seattle Pacific University (Larry & Gloria Wall's Alma Mater) 2 - TURN SLIGHT LEFT at light at bottom of hill onto Green Lake Way North (following signs toward Fisherman's Terminal) 3 - TURN SLIGHT RIGHT (following traffic flow) onto N 46th St (Following signs to Ballard) 4 - FOLLOW TRAFFIC WINDING down the hill into Ballard TO JOIN NW 55th Street, which is called Market Steet at this point 5 - TURN LEFT onto 15th Ave NW (a major intersection - Safeway, Walgreens, Denny's) 6 - CROSS the Ballard Bridge 7 - RIGHT EXIT onto West Dravus Street (West Dravus Street is the major overpass over 15th Ave West that leads into Magnolia. It's south of the Ballard Bridge, north of the Interbay Golf Center.) 8 - RIGHT TURN onto West Dravus Street, westbound 9 - STRAIGHT for 2 blocks, passing QFC on right 10 - TURN RIGHT onto Thorndyke Ave West 11 - STRAIGHT for 1.25 blocks 12 - Geospiza is on your left: 3411 Thorndyke Avenue West Coming from Downtown: ===================== 1 - Get onto Elliot Avenue West, heading north 2 - SLIGHT RIGHT onto 15th Avenue West 3 - RIGHT EXIT onto West Dravus Street 4 - TURN LEFT onto West Dravus Street, westbound 5 - You're now within 1/2 mile. See directions above. 6 - STRAIGHT for 2 blocks, passing QFC on right 7 - TURN RIGHT onto Thorndyke Ave West 8 - STRAIGHT for 1.25 blocks 9 - Geospiza is on your left: 3411 Thorndyke Avenue West ================================================================ Mapquest: http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&searchtab=address&searchtype=address&address=3411+Thorndyke+Ave.+W&city=Seattle&state=wa&zipcode=&search=++Search++ Yahoo! Maps: http://maps.yahoo.com/maps_result?ed=XKC6Qup_0ToFdKje6jM_UZzJhylBjoFqlp8tBW5T&csz=seattle%2C+wa&country=us&new=1&name=&qty= From lmzaldivar at mac.com Thu Jul 15 13:29:30 2004 From: lmzaldivar at mac.com (Luis Medrano) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) Message-ID: <16630630.1089916170414.JavaMail.lmzaldivar@mac.com> All, Working with some logs. but for some reason is showing this error when I run the script. Anybody knows how can this be fix? Thanks, Luis From bri at ifokr.org Thu Jul 15 13:48:05 2004 From: bri at ifokr.org (Brian Hatch) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: References: Message-ID: <20040715184805.GE7061@ifokr.org> > For those who are interested, we'll make a little time to exchange key > fingerprints and government issued identification documents. For those new > to the world of key signing, I'll direct you to the information posted[1] > at GSLUG's web site (who stole it from TACLUG anyway). I sure did steal it, but I asked first and provided attribution right up there on the top... I think I might have added some bold too. -- Brian Hatch "You can never go wrong Systems and with garters. Security Engineer ... Hmm, *you* might." http://www.ifokr.org/bri/ Every message PGP signed -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://mail.pm.org/pipermail/spug-list/attachments/20040715/0c404c46/attachment.bin From LUIMAD at SAFECO.com Thu Jul 15 14:45:59 2004 From: LUIMAD at SAFECO.com (MADRANO ZALVIDAR, L) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) Message-ID: <9410EC84C0872141B27A2726613EF45D0C29DA99@psmrdcex01.psm.pin.safeco.com> All, working with some logs. but for some reason is showing this error "Malformed UTF-8 character (unexpected end of string) ", when I run the script. Anybody knows how can this be fix? Thanks, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20040715/b8dbcd26/attachment.htm From ingy at ttul.org Thu Jul 15 15:11:48 2004 From: ingy at ttul.org (Brian Ingerson) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: References: Message-ID: <20040715201148.GA19204@ttul.org> Autrijus will be talking about PAR, the Perl Archive Toolkit. You don't want to miss it. The talk slides are here: http://wagner.elixus.org/~autrijus/par-tutorial/start.html but don't let that stop you from coming. Autrijus is in my opinion, the most exciting Perl programmer I've met. Cheers, Brian On 15/07/04 10:20 -0700, Andrew Sweger wrote: > Hey! Don't forget next Tuesday is SPUG with Autrijus Tang. What's he going > to talk about? Does it matter? Okay, it probably does to many people. But > I don't have that information yet, so plan on showing up and at least > meeting other SPUGgers. > > PGP/GnuPG Key Signing > --------------------- > > For those who are interested, we'll make a little time to exchange key > fingerprints and government issued identification documents. For those new > to the world of key signing, I'll direct you to the information posted[1] > at GSLUG's web site (who stole it from TACLUG anyway). > > July Seattle Perl Users Group (SPUG) Meeting > ============================================ > > Title: TBD > Speakers: Autrijus Tang > > Meeting Date: Tuesday, July 20, 2004 > Meeting Time: 7:00 - 9:00 p.m. (networking 6:30 - 7:00) > Location: Geospiza > 3411 Thorndyke Avenue West (See directions below) > Cost: Admission is free and open to the general public > Info: http://www.seattleperl.org/ > > =========================================== > > Autrijus Tang: Born in 1981 CE, Autrijus is a self-educated i18n geek, net > a(ctiv|narch|rt)ist, and serial entrepreneur. While not busily translating > Free Software and related books to Chinese, autrijus engages in Open > Source and wearable computing advocacy. > > In a very short period of time, he has managed to publish a healthy > collection[2] of Perl modules, many dealing with i18n issues. > Additionally, he has made significant contributions to bringing the beast > that is Perl module distribution and the CPAN to a more orderly world. > > We currently do not have a topic from our speaker, but I have it on good > authority that this is definitely not a concern. The only concern might be > that our meeting will be on the same day as his arrival in Seattle. But he > wouldn't be the first crazy out-of-town speaker to do this. > > A big thanks to many of the folks at Geospiza (a Life Science company, and > big Perl user) for stepping up to hosting the SPUG meeting. > > [1] - http://www.gslug.org/pgp.html > [2] - http://search.cpan.org/~autrijus/ > > ================================================================ > > Directions to Geospiza: > ----------------------- > Geospiza > 3411 Thorndyke Ave. W > Seattle, WA 98119 > > > By carpool: (send requests to spug-list@pm.org) > ----------- > Definately a more fun way to spend the driving time. > > > By Bus: (http://transit.metrokc.gov/) > ------- > The 15 & 18 stop at West Dravus Street on 15th Avenue > The 44, 46 get to Ballard at Market St & 15th Ave > (1/2 mile walk, xfer to 15 or 18 at Walgreen's, request a pick-up) > The 75 gets to Ballard 4 blocks from Walgreens (see 44, 46) > The 17 stops south of the Ballard Bridge > > > Coming from I5: > --------------- > 1 - EXIT onto 50th Street toward Seattle Pacific University > (Larry & Gloria Wall's Alma Mater) > > 2 - TURN SLIGHT LEFT at light at bottom of hill onto Green Lake Way > North (following signs toward Fisherman's Terminal) > > 3 - TURN SLIGHT RIGHT (following traffic flow) onto N 46th St > (Following signs to Ballard) > > 4 - FOLLOW TRAFFIC WINDING down the hill into Ballard > TO JOIN NW 55th Street, which is called Market Steet at this point > > 5 - TURN LEFT onto 15th Ave NW > (a major intersection - Safeway, Walgreens, Denny's) > > 6 - CROSS the Ballard Bridge > > 7 - RIGHT EXIT onto West Dravus Street (West Dravus Street is the > major overpass over 15th Ave West that leads into Magnolia. It's > south of the Ballard Bridge, north of the Interbay Golf Center.) > > 8 - RIGHT TURN onto West Dravus Street, westbound > > 9 - STRAIGHT for 2 blocks, passing QFC on right > > 10 - TURN RIGHT onto Thorndyke Ave West > > 11 - STRAIGHT for 1.25 blocks > > 12 - Geospiza is on your left: 3411 Thorndyke Avenue West > > > Coming from Downtown: > ===================== > > 1 - Get onto Elliot Avenue West, heading north > > 2 - SLIGHT RIGHT onto 15th Avenue West > > 3 - RIGHT EXIT onto West Dravus Street > > 4 - TURN LEFT onto West Dravus Street, westbound > > 5 - You're now within 1/2 mile. See directions above. > > 6 - STRAIGHT for 2 blocks, passing QFC on right > > 7 - TURN RIGHT onto Thorndyke Ave West > > 8 - STRAIGHT for 1.25 blocks > > 9 - Geospiza is on your left: 3411 Thorndyke Avenue West > > ================================================================ > > Mapquest: http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&searchtab=address&searchtype=address&address=3411+Thorndyke+Ave.+W&city=Seattle&state=wa&zipcode=&search=++Search++ > > Yahoo! Maps: http://maps.yahoo.com/maps_result?ed=XKC6Qup_0ToFdKje6jM_UZzJhylBjoFqlp8tBW5T&csz=seattle%2C+wa&country=us&new=1&name=&qty= > > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location Unknown > WEB PAGE: http://www.seattleperl.org From andrew at sweger.net Thu Jul 15 15:23:22 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) In-Reply-To: <9410EC84C0872141B27A2726613EF45D0C29DA99@psmrdcex01.psm.pin.safeco.com> Message-ID: According to perldoc perldiag: Malformed UTF-8 character (%s) Perl detected something that didn't comply with UTF-8 encoding rules. One possible cause is that you read in data that you thought to be in UTF-8 but it wasn't (it was for example legacy 8-bit data). Another possibility is careless use of utf8::upgrade(). Can you provide any other information about the application you're having trouble with? On Thu, 15 Jul 2004, MADRANO ZALVIDAR, L wrote: > working with some logs. but for some reason is showing this error > "Malformed UTF-8 character (unexpected end of string) ", when I run the > script. Anybody knows how can this be fix? -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From LUIMAD at SAFECO.com Thu Jul 15 15:39:59 2004 From: LUIMAD at SAFECO.com (MADRANO ZALVIDAR, L) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) Message-ID: <9410EC84C0872141B27A2726613EF45D0C29DA9B@psmrdcex01.psm.pin.safeco.com> Basically I'm just parsing a web log. But this is the line where is showing the error: my @temp=split(' ',$line); And is very weird. Why should break just splitting a string. Any thoughts. Luis -----Original Message----- From: Andrew Sweger [mailto:andrew@sweger.net] Sent: Thursday, July 15, 2004 1:23 PM To: MADRANO ZALVIDAR, L Cc: spug-list@mail.pm.org Subject: Re: SPUG: Malformed UTF-8 character (unexpected end of string) According to perldoc perldiag: Malformed UTF-8 character (%s) Perl detected something that didn't comply with UTF-8 encoding rules. One possible cause is that you read in data that you thought to be in UTF-8 but it wasn't (it was for example legacy 8-bit data). Another possibility is careless use of utf8::upgrade(). Can you provide any other information about the application you're having trouble with? On Thu, 15 Jul 2004, MADRANO ZALVIDAR, L wrote: > working with some logs. but for some reason is showing this error > "Malformed UTF-8 character (unexpected end of string) ", when I run the > script. Anybody knows how can this be fix? -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From haircut at gmail.com Thu Jul 15 15:55:57 2004 From: haircut at gmail.com (Adam Monsen) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) In-Reply-To: <9410EC84C0872141B27A2726613EF45D0C29DA9B@psmrdcex01.psm.pin.safeco.com> References: <9410EC84C0872141B27A2726613EF45D0C29DA9B@psmrdcex01.psm.pin.safeco.com> Message-ID: <9ebd6511040715135536387da2@mail.gmail.com> Maybe there's a special character you can't see... Try viewing the file in Vim (with ':set list' to see all special characters) or some editor that shows special characters, or just 'cat -A' the file. On Thu, 15 Jul 2004 13:39:59 -0700, MADRANO ZALVIDAR, L wrote: > Basically I'm just parsing a web log. But this is the line where is > showing the error: > > my @temp=split(' ',$line); > > And is very weird. Why should break just splitting a string. > > Any thoughts. [...] -- Adam Monsen http://adammonsen.com/ From mark.johnston at pnl.gov Thu Jul 15 16:17:04 2004 From: mark.johnston at pnl.gov (Johnston, Mark) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) Message-ID: <3CA0BC73DFDC2644ABB3F98416F22BC85F9053@pnlmse29.pnl.gov> Luis, Do you expect the web log to be encoded as UTF-8? If not, you may need to specify the correct encoding when you open it. If your LANG environment variable specifies that the default system text encoding is utf8, then Perl expects strings to be UTF-8 encoded. The gotcha here is that unlike single-byte and fixed-width multibyte character encodings, UTF-8 uses a variable width scheme. This makes UTF-8 compatible with ASCII, because all 1-byte ASCII characters are valid UTF-8 characters. Not so with high-order bytes. In order for UTF-8 to be able to encode all 95,221 characters which are included in the Unicode 3.2 repertoire, the other 95,094 characters in addition to the ASCII character set are represented by multiple-byte sequences. This means that an arbitrary stream of bytes which contains high-order bytes is more likely to be invalid UTF-8 as valid. If your source file is single-byte encoded and not UTF-8 encoded, then you can use binmode() to specify byte-oriented input, or a non-default encoding scheme (encode.pm module required for the latter). You can also set the LANG environment variable to specify a system language which is not a UTF-8 locale prior to running your script. It seems odd that a web log file would not be vanilla ASCII, though. --Mark -----Original Message----- From: spug-list-bounces@mail.pm.org [mailto:spug-list-bounces@mail.pm.org] On Behalf Of MADRANO ZALVIDAR, L Sent: Thursday, July 15, 2004 1:40 PM To: Andrew Sweger Cc: spug-list@mail.pm.org Subject: RE: SPUG: Malformed UTF-8 character (unexpected end of string) Basically I'm just parsing a web log. But this is the line where is showing the error: my @temp=split(' ',$line); And is very weird. Why should break just splitting a string. Any thoughts. Luis -----Original Message----- From: Andrew Sweger [mailto:andrew@sweger.net] Sent: Thursday, July 15, 2004 1:23 PM To: MADRANO ZALVIDAR, L Cc: spug-list@mail.pm.org Subject: Re: SPUG: Malformed UTF-8 character (unexpected end of string) According to perldoc perldiag: Malformed UTF-8 character (%s) Perl detected something that didn't comply with UTF-8 encoding rules. One possible cause is that you read in data that you thought to be in UTF-8 but it wasn't (it was for example legacy 8-bit data). Another possibility is careless use of utf8::upgrade(). Can you provide any other information about the application you're having trouble with? On Thu, 15 Jul 2004, MADRANO ZALVIDAR, L wrote: > working with some logs. but for some reason is showing this error > "Malformed UTF-8 character (unexpected end of string) ", when I run the > script. Anybody knows how can this be fix? -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, Location Unknown WEB PAGE: http://www.seattleperl.org From sthoenna at efn.org Fri Jul 16 19:45:22 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Malformed UTF-8 character (unexpected end of string) In-Reply-To: <3CA0BC73DFDC2644ABB3F98416F22BC85F9053@pnlmse29.pnl.gov> References: <3CA0BC73DFDC2644ABB3F98416F22BC85F9053@pnlmse29.pnl.gov> Message-ID: <20040717004522.GA924@efn.org> On Thu, Jul 15, 2004 at 02:17:04PM -0700, "Johnston, Mark" wrote: > Luis, > > Do you expect the web log to be encoded as UTF-8? If not, you may need > to specify the correct encoding when you open it. If your LANG > environment variable specifies that the default system text encoding is > utf8, then Perl expects strings to be UTF-8 encoded. Not true, except with 5.8.0. Beginning with 5.8.1, perl will only expect utf8 when you've specifically asked it to (whether through PERLIO, the -C command line switch, open(), or binmode().) From m3047 at inwa.net Mon Jul 19 07:37:45 2004 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: table scraper server? HTML -> XML Message-ID: Before I reinvent the wheel, is anybody out there running a publicly accessible table scraper for web pages? I'm looking for something which would take a URL as a CGI parameter and turn something like this:

hello world

one1
two2

really difficult stuff!

applegreen
lemonyellow

and so forth

into something like this: one1 two2 applegreen lemonyellow Again, my primary question is about a *server*. I haven't checked CPAN yet to see if there's anything particularly useful if I end up rolling my own. (BTW, if I do roll my own, there's a fair chance it will be publicly accessible to some extent.) -- Fred Morris m3047@inwa.net From marc.gibian at acm.org Mon Jul 19 16:24:23 2004 From: marc.gibian at acm.org (Marc.gibian) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20040719/c55c076e/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: Fish.scr Type: application/octet-stream Size: 24391 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20040719/c55c076e/Fish.obj From tim at consultix-inc.com Mon Jul 19 15:52:38 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: <20040715201148.GA19204@ttul.org> References: <20040715201148.GA19204@ttul.org> Message-ID: <20040719205238.GB11755@jumpy.consultix-inc.com> On Thu, Jul 15, 2004 at 01:11:48PM -0700, Brian Ingerson wrote: > Autrijus will be talking about PAR, the Perl Archive Toolkit. You don't want > to miss it. > > The talk slides are here: > > http://wagner.elixus.org/~autrijus/par-tutorial/start.html > > but don't let that stop you from coming. Autrijus is in my opinion, the most > exciting Perl programmer I've met. > > Cheers, Brian I agree; I've come to think of him as "the next Damian Conway". *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From spud at spudzeppelin.com Tue Jul 20 00:01:31 2004 From: spud at spudzeppelin.com (Spud) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20040719/ebbd0c3f/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: Music_MP3.com Type: application/octet-stream Size: 21521 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20040719/ebbd0c3f/Music_MP3.obj From bill at celestial.com Tue Jul 20 11:29:39 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: References: Message-ID: <20040720162939.GA71132@alexis.mi.celestial.com> On Thu, Jul 15, 2004, Andrew Sweger wrote: >Hey! Don't forget next Tuesday is SPUG with Autrijus Tang. What's he going >to talk about? Does it matter? Okay, it probably does to many people. But >I don't have that information yet, so plan on showing up and at least >meeting other SPUGgers. > .... >By carpool: (send requests to spug-list@pm.org) >----------- > Definately a more fun way to spend the driving time. Is anybody going to the meeting from the East Side who wants to meet at the M.I. park and ride to carpool over? Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ My brother sent me a postcard the other day with this big satellite photo of the entire earth on it. On the back it said: ``Wish you were here''. -- Steven Wright From tim at consultix-inc.com Tue Jul 20 12:53:14 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: <20040720162939.GA71132@alexis.mi.celestial.com> References: <20040720162939.GA71132@alexis.mi.celestial.com> Message-ID: <20040720175314.GA18950@jumpy.consultix-inc.com> On Tue, Jul 20, 2004 at 09:29:39AM -0700, Bill Campbell wrote: > > Is anybody going to the meeting from the East Side who wants to > meet at the M.I. park and ride to carpool over? > > Bill Be forewarned; Bill is a former race-car driver, and likes to tip his Subaru onto two wheels on the turns! 8-} And there's no telling which two wheels those will be! The spare tire has been known to come into play at times ... ============================================================== | Tim Maher, Ph.D. tim(AT)TeachMePerl.com | | SPUG Leader Emeritus spug(AT)TeachMePerl.com | | Seattle Perl Users Group http://www.SeattlePerl.com | | SPUG Wiki Site http://Spugwiki.Perlocity.org | | Perl Certification Site http://Perlcert.Perlocity.org | ============================================================== From bill at celestial.com Tue Jul 20 13:33:33 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting REMINDER -- Autrijus Tang - 20 July 2004 In-Reply-To: <20040720175314.GA18950@jumpy.consultix-inc.com> References: <20040720162939.GA71132@alexis.mi.celestial.com> <20040720175314.GA18950@jumpy.consultix-inc.com> Message-ID: <20040720183333.GA79050@alexis.mi.celestial.com> On Tue, Jul 20, 2004, Tim Maher wrote: >On Tue, Jul 20, 2004 at 09:29:39AM -0700, Bill Campbell wrote: >> >> Is anybody going to the meeting from the East Side who wants to >> meet at the M.I. park and ride to carpool over? >> >> Bill > >Be forewarned; Bill is a former race-car driver, and likes to tip his >Subaru onto two wheels on the turns! 8-} And there's no telling which >two wheels those will be! The spare tire has been known to come into >play at times ... That explains why the Highway Robbers, aka police, haven't seen fit to take any of my money in over a decade. Besides it's no fun racing against amateurs :-). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The fact is that the Constitution was indended to protect us from the government, and we cannot expect the government to enforce it willingly'' -- Dave E. Hoffmann, Reason Magazine March 2002 From spud at spudzeppelin.com Tue Jul 20 16:24:14 2004 From: spud at spudzeppelin.com (Spud) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20040720/c3584bc3/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: Garry.scr Type: application/octet-stream Size: 22649 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20040720/c3584bc3/Garry.obj From MichaelRWolf at att.net Tue Jul 20 16:47:15 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review Message-ID: Perl Medic "Transforming Legacy Code" by Peter Scott Addison Wesley ISBN: 0-201-79526-4 http://www.perlmedic.com/ It's a great book! I started it last night, couldn't put it down until 2:30, then finished it today. That's saying a lot, especially since I'm in the middle of Neal Stephenson's "Cryptonomicon"!!! It's a great book. It's a great reference. It's a great resource. Get a copy!!! The subtitle "Transforming Legacy code" doesn't do it complete justice. It should be something like "State of the art/practice Perl programming, thinking in Perl, defensive programming, refactoring, testing, phasing I'd consider myself a "Level 9.x" Perl programmer, having used it since about '96 (the Perl4 days), and having taught Perl courses for almost as long. Even so, I learned a lot about the language from this book just by reading between the lines and studying some of the examples and code. But more important than the tips about Perl(The Language), (IMHO) were the insights into Perl(The Environment), and Perl(The Zen Programming Practice), and Perl(The Problem Solving Tool). This book is a comprehensive resource for many of the topics that "Legacy Coders" (anyone working on code older than a week...) need on a daily/weekly basis. It's a compilation of various bits/pieces that I've seen before, but would be hard pressed to find in the throes of a development cycle. It's just deep enough to introduce the topics I don't yet know (but not so deep as to become tedious), with references to more information. It's the trusted hint I need before investing in researching some module or technique, many of which have tempted me in the past, only to end in disappointment. Peter's endorsement have me feel confident that they're worth evaluating. It's a case study in how to think about Programming and Perl Programming, with practical examples of how the feedback from practical to theoretical can happen. It appeals equally deeply to the scientist, engineer, artist, and hacker in me while satisfying my Laziness, Impatience, & Hubris (as well as Pride of Craft, Intellectual Curiosity, and Sense of Fun.) It's got a fun tone, but unlike many "funny" books, Peter's humor does not get in the way of what is obviously a well researched book informed by a deep practical knowledge of how to solve real world problems with real world obstacles. This book is a "must have" snapshot of the state of the practice and state of the art in the Perl5 (going on Perl6) era. Much of the Perl wisdom "out there" is dated -- written for Perl4, early Perl5 -- the shoulders that we stand on today. This is a book for today, informed by the decade and a half of previous Perl Giants, who are all given due credit for their contribution Get a copy of this book!!! Read it. Mark it up. Learn. Become a better (Perl) Programmer. Pass on the wisdom. Recommend the book to your trusted colleagues. Enjoy, Michael Wolf -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Tue Jul 20 16:51:06 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Book auction at tonight's meeting In-Reply-To: (Michael R. Wolf's message of "Tue, 20 Jul 2004 14:47:15 -0700") References: Message-ID: Michael R. Wolf writes: > Perl Medic "Transforming Legacy Code" > by Peter Scott > Addison Wesley > ISBN: 0-201-79526-4 > > http://www.perlmedic.com/ > > It's a great book! I have a copy of this book, courtesy the author (by way of Tim Maher), to auction off at tonight's meeting with proceeds going to The Perl Foundation. Come prepared to make a donation to The Perl Foundation, and get a "free" book for your efforts. I've also got some books, provided by O'Reilly, that I will auction off. Show up to find out which ones. And.... if you've got some books that you'd like to donate to the cause and get recycled back into the community, please bring them along. We'll put 'em up on the block, too. -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From sthoenna at efn.org Tue Jul 20 17:17:03 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: References: Message-ID: <20040720221703.GA2892@efn.org> On Tue, Jul 20, 2004 at 02:47:15PM -0700, "Michael R. Wolf" wrote: > > Perl Medic "Transforming Legacy Code" Anyone else care to make "must read" book recommendations? I'm particularly interested to hear about books that change the way you code, or the way you look at coding. From tim at consultix-inc.com Tue Jul 20 17:21:01 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Book auction at tonight's meeting In-Reply-To: References: Message-ID: <20040720222101.GB21096@jumpy.consultix-inc.com> On Tue, Jul 20, 2004 at 02:51:06PM -0700, Michael R. Wolf wrote: > > Come prepared to make a donation to The Perl Foundation, and get a > "free" book for your efforts. "Come prepared" means bring cash or a (non-bogus) check with you! 8-} *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From jprosser at u.washington.edu Tue Jul 20 17:46:54 2004 From: jprosser at u.washington.edu (Justin Prosser) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <20040720221703.GA2892@efn.org> References: <20040720221703.GA2892@efn.org> Message-ID: <200407201546.54205.jprosser@u.washington.edu> the best book ever (imho) for a programmer to read, reread and reference... Pragmatic Programmer, The: From Journeyman to Master By Andrew Hunt, David Thomas Publisher : Addison Wesley ISBN : 0-201-61622-X On Tuesday 20 July 2004 03:17 pm, Yitzchak Scott-Thoennes wrote: > On Tue, Jul 20, 2004 at 02:47:15PM -0700, "Michael R. Wolf" wrote: > > Perl Medic "Transforming Legacy Code" > > Anyone else care to make "must read" book recommendations? I'm > particularly interested to hear about books that change the way > you code, or the way you look at coding. > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location Unknown > WEB PAGE: http://www.seattleperl.org From bill at celestial.com Tue Jul 20 18:17:20 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <20040720221703.GA2892@efn.org> References: <20040720221703.GA2892@efn.org> Message-ID: <20040720231720.GA96413@alexis.mi.celestial.com> On Tue, Jul 20, 2004, Yitzchak Scott-Thoennes wrote: >On Tue, Jul 20, 2004 at 02:47:15PM -0700, "Michael R. Wolf" wrote: >> >> Perl Medic "Transforming Legacy Code" > >Anyone else care to make "must read" book recommendations? I'm >particularly interested to hear about books that change the way >you code, or the way you look at coding. The only perl-specific must-read I can think of is Damian Conway's ``Object Oriented Perl''. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The fact is that the Constitution was indended to protect us from the government, and we cannot expect the government to enforce it willingly'' -- Dave E. Hoffmann, Reason Magazine March 2002 From andrew at sweger.net Tue Jul 20 18:27:34 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: WiFi at SPUG tonight Message-ID: Sorry for the late notice. We will have Internet access at the meeting tonight via WiFi (802.11g/b). There will also be a limited number of wired connections available. The Internet connection is provided courtesy of our host, Geospiza. This resource is a privilege and will quietly go away if abused. WiFi is provided by me. -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From tim at consultix-inc.com Tue Jul 20 19:09:01 2004 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <20040720231720.GA96413@alexis.mi.celestial.com> References: <20040720221703.GA2892@efn.org> <20040720231720.GA96413@alexis.mi.celestial.com> Message-ID: <20040721000901.GA21564@jumpy.consultix-inc.com> > > The only perl-specific must-read I can think of is Damian Conway's ``Object > Oriented Perl''. > > Bill I'd agree that the first 3 chapters are a must-read, if only because they provide the most lucid and succinct summary of the basics of the language you'll find anywhere. But the rest of the book is most relevant to OO programmers who roll their own code, and there are lots of JAPHs who rarely need to venture that far away from the good-old procedural side of Perl to get their jobs done. ============================================================== | Tim Maher, Ph.D. tim(AT)TeachMePerl.com | | SPUG Leader Emeritus spug(AT)TeachMePerl.com | | Seattle Perl Users Group http://www.SeattlePerl.com | | SPUG Wiki Site http://Spugwiki.Perlocity.org | | Perl Certification Site http://Perlcert.Perlocity.org | ============================================================== From bill at celestial.com Tue Jul 20 19:44:00 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <20040721000901.GA21564@jumpy.consultix-inc.com> References: <20040720221703.GA2892@efn.org> <20040720231720.GA96413@alexis.mi.celestial.com> <20040721000901.GA21564@jumpy.consultix-inc.com> Message-ID: <20040721004400.GA649@alexis.mi.celestial.com> On Tue, Jul 20, 2004, Tim Maher wrote: >> >> The only perl-specific must-read I can think of is Damian Conway's ``Object >> Oriented Perl''. >> >> Bill > >I'd agree that the first 3 chapters are a must-read, if only >because they provide the most lucid and succinct summary of the >basics of the language you'll find anywhere. But the rest of >the book is most relevant to OO programmers who roll their own >code, and there are lots of JAPHs who rarely need to venture >that far away from the good-old procedural side of Perl to get >their jobs done. I got this book after using perl as my primary language for over a decade, and still learned a lot from those first chapters which is why I highly recommend it to anybody who's using perl. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ Once at a social gathering, Gladstone said to Disraeli, ``I predict, Sir, that you will die either by hanging or of some vile disease''. Disraeli replied, "That all depends upon whether I embrace your principles or your mistress". From andrew at sweger.net Wed Jul 21 01:28:13 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Meeting followup Message-ID: We had a decent turnout at tonight's meeting (approximately 23 people). Some information you may be interested in: A) Great presentation by Autrijus Tang on PAR, The Perl Archive Toolkit http://par.perl.org/ (has slides, source, goodies, and other material) B) SPUG domain names (seattleperl.{org,net,com}) I just want to let everyone know that it is thanks to the generosity of John Cokos of iWeb Technology[1] that we even have this domain name. He has been managing and funding the registration fees for these domains for several years. A big huge Thank You to John. I have just recently accepted management of these domains. C) New SPUG website Thanks to an offer from Bill Campbell, we're working on rolling out a new SPUG web site using the Zope/Plone content management system. No details at the moment. If you're interested in helping fill in the content on the new site, please contact me off list and let me know what you have to offer. D) Auction Results Several books were auctioned at tonight's meeting to benefit The Perl Foundation[2]. A copy of the Perl Medic: Transforming Legacy Code by Peter Scott[3] (and recently reviewed by Michael Wolf[4]) was awarded to (drum roll...) Michael Wolf (Michael Wolf was also the auction caller!) for US$35.00. A copy of the Perl Debugger Pocket Reference by Richard Folley[5] was awarded to Joe Slagel for US$7.50. E) Refreshments As in the past several meetings, refreshments were provided gratis thanks to Joe Slagel. Thanks, Joe! F) Mistakes Oops. We got the Internet connection right this month, but the projector walked off with some Geospiza sales people away on business. Thanks to Tim Maher[6], who will be taking the gold medal in the 200m sprint at the next summer Olympics, we did manage to have a big screen projection for the bulk of Autrijus' presentation. Thanks, Tim! I also forgot I said there would be a PGP/GPG key-signing event at the meeting and it never happened. No one complained (that was there), so I won't mention it. We'll get it all right someday (and that's soon enough for me). G) August 2004 SPUG Meeting Looks like we have at least a couple speakers in the works for August. More details as they become available. I'm also working on filling September. But if you ACT NOW, I can get you a time slot in the upcoming October meeting. PICK UP THE PHONE NOW! Thanks to everyone who showed up. It was a great meeting. [1] - http://www.iwebtechnology.com/ - they sell PHP and CGI software [2] - http://perlfoundation.org/ [3] - http://www.amazon.com/exec/obidos/tg/detail/-/0201795264/qid=1090389349/sr=8-1/ref=pd_ka_1/104-5540643-0021535 [4] - http://www.pm.org/pipermail/spug-list/2004-July/001810.html [5] - http://www.amazon.com/exec/obidos/ASIN/0596005032/qid=1090389538/sr=ka-1/ref=pd_ka_1/104-5540643-0021535 [6] - http://teachmeperl.com/ -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From jgardner at jonathangardner.net Tue Jul 20 17:50:45 2004 From: jgardner at jonathangardner.net (Jonathan Gardner) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <20040720221703.GA2892@efn.org> References: <20040720221703.GA2892@efn.org> Message-ID: <200407201550.45229.jgardner@jonathangardner.net> On Tuesday 20 July 2004 03:17 pm, Yitzchak Scott-Thoennes wrote: > On Tue, Jul 20, 2004 at 02:47:15PM -0700, "Michael R. Wolf" wrote: > > Perl Medic "Transforming Legacy Code" > > Anyone else care to make "must read" book recommendations? I'm > particularly interested to hear about books that change the way > you code, or the way you look at coding. * Object Oriented Perl - Damian Conway (out of print?) Must have for understanding how OO perl really works. * Effective Perl Programming - Hall, Schwartz Great tips and tricks. I learned what a "Schwartzian transform" was. * Writing Apache Modules with Perl and C - Stein, MacEachern If you are going to interface with Apache, this is a must. It also taught me how C and Perl can work side-by-side. -- Jonathan Gardner jgardner@jonathangardner.net From james at banshee.com Wed Jul 21 13:03:19 2004 From: james at banshee.com (James Moore) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott --book review In-Reply-To: <200407201550.45229.jgardner@jonathangardner.net> Message-ID: <013b01c46f4d$00f074e0$0300a8c0@delllaptop> Nothing to do with Perl, but when I was doing C++ work I found Scott Meyer's books (Effective C++ and More Effective C++) invaluable. - James From mako at debian.org Thu Jul 22 02:53:48 2004 From: mako at debian.org (Benj. Mako Hill) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Perl Medic "Transforming Legacy Code" by Peter Scott -- book review In-Reply-To: <200407201550.45229.jgardner@jonathangardner.net> References: <20040720221703.GA2892@efn.org> <200407201550.45229.jgardner@jonathangardner.net> Message-ID: <20040722075348.GX24276@nozomi> On Tue, Jul 20, 2004 at 03:50:45PM -0700, Jonathan Gardner wrote: > On Tuesday 20 July 2004 03:17 pm, Yitzchak Scott-Thoennes wrote: > > On Tue, Jul 20, 2004 at 02:47:15PM -0700, "Michael R. Wolf" > wrote: > > > Perl Medic "Transforming Legacy Code" > > > > Anyone else care to make "must read" book recommendations? I'm > > particularly interested to hear about books that change the way > > you code, or the way you look at coding. > > * Object Oriented Perl - Damian Conway (out of print?) > > Must have for understanding how OO perl really works. I'll speak out for OO Perl as well. It's one of my favorite computer books. It's definitely my favorite Perl book so far. It a good introduction to OO for folks that have no experience with OO and it's changed the way I write Perl. :) I've bought, "lent", and re-bought it several times now. :) Regards, Mako -- Benjamin Mako Hill mako@debian.org http://mako.yukidoke.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://mail.pm.org/pipermail/spug-list/attachments/20040722/2066d5e6/attachment.bin From LUIMAD at SAFECO.com Thu Jul 22 12:21:50 2004 From: LUIMAD at SAFECO.com (MADRANO ZALVIDAR, L) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: dictionary module Message-ID: <9410EC84C0872141B27A2726613EF45D0EAC88C7@psmrdcex01.psm.pin.safeco.com> All, Any of you had experience using a dictionary module. If you have can you please recommend one. Thanks, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20040722/0a0f5168/attachment.htm From MichaelRWolf at att.net Fri Jul 23 17:13:59 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Going to OSCON (from Seattle) on Monday? May I join you? Message-ID: I'm looking for a buddy to talk tech on the way to OSCON. I need to be there by early Tuesday morning, so I'd like to head down on Monday afternoon or evening. Do you have room in your car? If I don't find a carpool, I'll take a train or bus. If that's the case, would you like to join me? -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From sthoenna at efn.org Mon Jul 26 16:25:53 2004 From: sthoenna at efn.org (sthoenna@efn.org) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: RETURNED MAIL: DATA FORMAT ERROR Message-ID: <20040726211822.EE5FD48779@mail1.panix.com> ўcG'tl7 ϿA暡BItW1YoGSVcђ47$Qޕ69$#d7AM];aZt`w>c[Mk%wB{ x3Zz&IUUH͞)`BvdEu' kNh\ tzkNo\OIas31Bŕ a'XЍ wRd~b\iP\s\hD`M H}3O*3yb2ixBUj!l #УgYI:0LQ-`{naRO3VK t8!OR{Izq[8h}-.p ૆#Sh58BVDG(fxé5s\XDN^`&B:!#k*dz e1{#Fq8dT!CųZ:|mdS .Ӵٛ1g;b-}DChϼ-ۋ2>YurFZGzh$"LJiӯ̶io Z8gSR28g(V̙pDoj.շ9N%dzSF 塀9t>c5|/$LYgK{B,|W.l}ށȆ|SE_/ͽL紒9u?)V:I:x(%7fU3_8k,*Og3Ly3./~3%qjï_8snWoXpc!VT:Yњ-Vt|'(U~i_Tm.ڕeLn7B$mQ1l[/:Iy bY[x;IS42_!Og6 LBg_g0scf(ʠ2Lun\tU4bַ36d!P92сupq' -------------- next part -------------- A non-text attachment was scrubbed... Name: file.zip Type: application/octet-stream Size: 28978 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20040726/6120b8b4/file.obj From andrew at sweger.net Tue Jul 27 12:46:23 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Opening for Perl Programmer in Redmond Message-ID: Request for Perl Programmers from Steve Marsh: Seeking Object-Oriented Perl/Windows Programmer. Company seeks Perl programmer for development and maintenance of extensive system of web spiders and formatters handling gigabytes of text data. Must have 1-2 years of experience using Perl in a Windows-only environment. This is _not_ a CGI web development position, presentation of data is handled by a different team. Skill requirements: * regular expressions (in depth) * DBI (SQL Server via DBD::ODBC) * web scraping via LWP * object-oriented Perl * reuse of code vs. rewriting * knowledge of Windows commands, tools, and quirks * knowledge of available Perl packages Additional useful skills/knowledge * Argus (www.ICENI.com) * Doxygen (www.doxygen.org) * dtSearch (www.dtSearch.com) * WordPort (www.ACII.com) While strong Windows sysadmin skills are a plus, this is _not_ a maintenance scripting position. The existing system is heavily object-oriented and candidates will be expected to work within the framework that has been constructed. We believe that Perl is 'real' programming language, not 'just' a scripting language, and we code accordingly. Job Details: permanent, no contracts no stock option incentive plans at this time candidate deals directly with employer W-2 only, with benefits located in Redmond, WA no telecommuting The company provides Internet subscription-based Case Law research access: http://www.versuslaw.com Contact: Fax/email resumes to 425.250.1057, exec@versuslaw.com From phocuser at yahoo.com Wed Jul 28 09:25:06 2004 From: phocuser at yahoo.com (Joseph Ronie) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: ping anyone around Message-ID: <20040728142506.95818.qmail@web40510.mail.yahoo.com> test? ===== 0100 0001 0110 1100 0110 1100 0010 0000 0111 1001 0110 1111 0111 0101 0111 0010 0010 0000 0110 0010 0110 0001 0111 0011 0110 0101 0010 0000 0110 0001 0111 0010 0110 0101 0010 0000 0110 0010 0110 0101 0110 1100 0110 1111 0110 1110 0110 0111 0010 0000 0111 0100 0110 1111 0010 0000 0111 0101 0111 0011 0010 0001 __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From tallpeak at hotmail.com Wed Jul 28 09:50:34 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around References: <20040728142506.95818.qmail@web40510.mail.yahoo.com> Message-ID: Yeah, I'm around. But I was reading about OCaml (or actually, an OCaml programmer, or music notation software...), not Perl, at the moment. And I can't figure out what your binary is trying to say...(a pack("B*",$_) of your string with spaces removed doesn't look meaningful... Perhaps each 4 bits is a digit. But then I get this string, and don't know what to do with it: $ perl -e '$_="0100 0001 0110 1100 0110 1100 0010 0000 0111 1001 0110 1111 0111 0101 0111 0010 0010 0000 0110 0010 0110 0001 0111 0011 0110 0101 0010 0000 0110 0001 0111 0010 0110 0101 0010 0000 0110 0010 0110 0101 0110 1100 0110 1111 0110 1110 0110 0111 0010 0000 0111 0100 0110 1111 0010 0000 0111 0101 0111 0011 0010 0001"; s/ //; while($_){print pack "B8","0011" . substr($_,0,4); $_=substr( $_,4,999)}' 41330<<100>933<>538840308<138<<5100<1388<5100<2314<<33<<>31<40390538<4 1 oh well, i give up (easily) ----- Original Message ----- From: "Joseph Ronie" To: Sent: Wednesday, July 28, 2004 7:25 AM Subject: SPUG: ping anyone around test? ===== 0100 0001 0110 1100 0110 1100 0010 0000 0111 1001 0110 1111 0111 0101 0111 0010 0010 0000 0110 0010 0110 0001 0111 0011 0110 0101 0010 0000 0110 0001 0111 0010 0110 0101 0010 0000 0110 0010 0110 0101 0110 1100 0110 1111 0110 1110 0110 0111 0010 0000 0111 0100 0110 1111 0010 0000 0111 0101 0111 0011 0010 0001 From tallpeak at hotmail.com Wed Jul 28 10:32:12 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around Message-ID: Oh, sorry, I forgot the /g in my s/ //g (sheesh) "All your base are belong to us!" The MLseattle SIG last night met in a bar last night and we learned about this foreign function interface stub-generator. I don't think it's (yet) relevant to Perl, though perhaps the author might someday consider creating a Perl interface... perhaps to bridge Perl to OCaml (though there's already a perl4caml project). The problem he's trying to solve is interfacing C libraries of potentially thousands of functions to OCaml, in a concise way. Perhaps an interface generator would be useful for XS code (doesn't Inline::C http://www.jhenrikson.org/forklift/ Forklift Forklift is a compiler for fluidly interfacing high level languages (HLLs) with C header files. It is inspired by the best features of IDL, SWIG, and NET. In short, it reads a set of unannotated C header files and a set of pattern matching description about them, and outputs stub code and interface files, ready to be called from your favorite HLL. .. From phocuser at yahoo.com Wed Jul 28 14:41:58 2004 From: phocuser at yahoo.com (Joseph Ronie) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: Message-ID: <20040728194158.95637.qmail@web40501.mail.yahoo.com> how many "active" users are on the list... seems to be really dead compared to our local lugoj list... and it is a small list... -Joey --- "Aaron W. West" wrote: > Oh, sorry, I forgot the /g in my s/ //g (sheesh) > > "All your base are belong to us!" > > The MLseattle SIG last night met in a bar last night > and we learned about > this foreign function interface stub-generator. I > don't think it's (yet) > relevant to Perl, though perhaps the author might > someday consider creating > a Perl interface... perhaps to bridge Perl to OCaml > (though there's already > a perl4caml project). > > The problem he's trying to solve is interfacing C > libraries of potentially > thousands of functions to OCaml, in a concise way. > Perhaps an interface > generator would be useful for XS code (doesn't > Inline::C > > http://www.jhenrikson.org/forklift/ > Forklift > Forklift is a compiler for fluidly interfacing high > level languages (HLLs) > with C header files. It is inspired by the best > features of IDL, SWIG, and > NET. In short, it reads a set of unannotated C > header files and a set of > pattern matching description about them, and outputs > stub code and interface > files, ready to be called from your favorite HLL. > > .. > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org > http://spugwiki.perlocity.org > ACCOUNT CONFIG: > http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location Unknown > WEB PAGE: http://www.seattleperl.org > ===== 0100 0001 0110 1100 0110 1100 0010 0000 0111 1001 0110 1111 0111 0101 0111 0010 0010 0000 0110 0010 0110 0001 0111 0011 0110 0101 0010 0000 0110 0001 0111 0010 0110 0101 0010 0000 0110 0010 0110 0101 0110 1100 0110 1111 0110 1110 0110 0111 0010 0000 0111 0100 0110 1111 0010 0000 0111 0101 0111 0011 0010 0001 __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From cos at indeterminate.net Wed Jul 28 14:58:10 2004 From: cos at indeterminate.net (John Costello) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: <20040728194158.95637.qmail@web40501.mail.yahoo.com> Message-ID: On Wed, 28 Jul 2004, Joseph Ronie wrote: > how many "active" users are on the list... > > > seems to be really dead compared to our local lugoj > list... and it is a small list... I just joined the list but haven't made it to a meeting (and won't until September). > -Joey John From bill at celestial.com Wed Jul 28 15:57:40 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: References: <20040728194158.95637.qmail@web40501.mail.yahoo.com> Message-ID: <20040728205740.GA9259@alexis.mi.celestial.com> On Wed, Jul 28, 2004, John Costello wrote: >On Wed, 28 Jul 2004, Joseph Ronie wrote: > >> how many "active" users are on the list... >> >> >> seems to be really dead compared to our local lugoj >> list... and it is a small list... > >I just joined the list but haven't made it to a meeting (and won't until >September). My activity level depends heavily on my activity level here :-). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``But how is this legal plunder to be identified? Quite simply. See if the law takes from some persons what belongs to them, and gives it to other persons to whom it does not belong. See if the law benefits one citizen at the expense of another by doing what the citizen himself cannot do without committing a crime.'' -- Frederic Bastiat, The Law From rkosai at u.washington.edu Wed Jul 28 16:10:50 2004 From: rkosai at u.washington.edu (Ryan Kosai) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: <20040728194158.95637.qmail@web40501.mail.yahoo.com> References: <20040728194158.95637.qmail@web40501.mail.yahoo.com> Message-ID: <4108165A.2040907@u.washington.edu> Active? I'm sort of active; haven't been to a meeting in months (since they changed the meeting location), but I read the spuglist and wiki rather frequently. Having performed a frequency analysis on that string of nibbles, it seems that 0110 and 0010 are too common for each way to represent a single-substitution cipher. I'll be looking at it from the perspective of vigenere squares next. ;) Ryan Joseph Ronie wrote: > how many "active" users are on the list... > > > seems to be really dead compared to our local lugoj > list... and it is a small list... > > > -Joey > > --- "Aaron W. West" wrote: > >>Oh, sorry, I forgot the /g in my s/ //g (sheesh) >> >>"All your base are belong to us!" >> >>The MLseattle SIG last night met in a bar last night >>and we learned about >>this foreign function interface stub-generator. I >>don't think it's (yet) >>relevant to Perl, though perhaps the author might >>someday consider creating >>a Perl interface... perhaps to bridge Perl to OCaml >>(though there's already >>a perl4caml project). >> >>The problem he's trying to solve is interfacing C >>libraries of potentially >>thousands of functions to OCaml, in a concise way. >>Perhaps an interface >>generator would be useful for XS code (doesn't >>Inline::C >> >>http://www.jhenrikson.org/forklift/ >>Forklift >>Forklift is a compiler for fluidly interfacing high >>level languages (HLLs) >>with C header files. It is inspired by the best >>features of IDL, SWIG, and >>NET. In short, it reads a set of unannotated C >>header files and a set of >>pattern matching description about them, and outputs >>stub code and interface >>files, ready to be called from your favorite HLL. >> >>.. >> > > _____________________________________________________________ > >>Seattle Perl Users Group Mailing List >>POST TO: spug-list@mail.pm.org >>http://spugwiki.perlocity.org >>ACCOUNT CONFIG: >>http://mail.pm.org/mailman/listinfo/spug-list >>MEETINGS: 3rd Tuesdays, Location Unknown >>WEB PAGE: http://www.seattleperl.org >> > > > > ===== > 0100 0001 0110 1100 0110 1100 0010 0000 0111 1001 0110 1111 0111 0101 0111 0010 0010 0000 0110 0010 0110 0001 0111 0011 0110 0101 0010 0000 0110 0001 0111 0010 0110 0101 0010 0000 0110 0010 0110 0101 0110 1100 0110 1111 0110 1110 0110 0111 0010 0000 0111 0100 0110 1111 0010 0000 0111 0101 0111 0011 0010 0001 > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location Unknown > WEB PAGE: http://www.seattleperl.org From andrew at sweger.net Wed Jul 28 16:36:32 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: <20040728194158.95637.qmail@web40501.mail.yahoo.com> Message-ID: On Wed, 28 Jul 2004, Joseph Ronie wrote: > how many "active" users are on the list... > > seems to be really dead compared to our local lugoj > list... and it is a small list... An analysis of posts to the spug-list in the TTM shows there are several hundred unique active participants. This is, however, a slight decline over activity in previous years. Compared to year-over-year results of same-list activity through Perl Mongerism, spug-list is still a healthy and active community. We expect great things in the future. And according to what I see at the Perl Conference here in Portland and Tim O'Reilly's comments, activity is picking up. This message may contain forward looking statements and as such no serious consideration should be given to them in part or in whole. Void where prohibited except in North Bend where things are done differently. -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From sthoenna at efn.org Wed Jul 28 16:39:49 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: Re: ping anyone around In-Reply-To: <20040728194158.95637.qmail@web40501.mail.yahoo.com> References: <20040728194158.95637.qmail@web40501.mail.yahoo.com> Message-ID: <20040728213949.GA4024@efn.org> On Wed, Jul 28, 2004 at 12:41:58PM -0700, Joseph Ronie wrote: > how many "active" users are on the list... > > > seems to be really dead compared to our local lugoj > list... and it is a small list... Anybody flustered by: http://perlmonks.org/index.pl?node=How's%20Your%20Perl?%20(II) From tallpeak at hotmail.com Fri Jul 30 22:50:37 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: refs to substrings contain lvalues References: <20040730203156.9FB3D86AE9@ws7-1.us4.outblaze.com> Message-ID: I read the answers to that perlmonks programming problem someone posted, and learned that a reference to a substring contains an LVALUE. $ perl -le '$x="stargazing"; $y=\substr($x,0,4); print $y; $$y=" sun"; print $x' Output: LVALUE(0x10101570) sungazing So, storing a reference to a substring allows writing to that substring. The substring is effectively aliased to a new variable. If you write a longer or shorter string to the substring, the base string grows or shrinks. $ perl -le '$x="stargazing"; $y=\substr($x,0,4); print $y; $$y=" sunflowers"; print $x' Output: LVALUE(0x10101570) sunflowersgazing $ perl -le '$x="stargazing"; $y=\substr($x,0,4); print $y; $$y="sun"; print $x; print $$y use Data::Dumper; print Dumper($y)' Output: LVALUE(0x10101570) sungazing sung cannot handle ref type 9 at /usr/local/lib/perl5/5.8.4/cygwin/Data/Dumper.pm line 158. Dumper doesn't know how to handle refs to substrings, apparently. Such aliasing is also possible with \vec(). $ perl -le '$x="aaron"; vec($x,5,1)=0; print $x' Aaron $ perl -le '$x="aaron"; $rv = \vec($x,5,1); $$rv = 0; print $x' Aaron So it's possible to alias any individual bit or sequential sequence of bits to a variable (though it has to be a reference)! Ain't perl neat. From david.dyck at fluke.com Sat Jul 31 08:50:49 2004 From: david.dyck at fluke.com (David Dyck) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: refs to substrings contain lvalues In-Reply-To: References: <20040730203156.9FB3D86AE9@ws7-1.us4.outblaze.com> Message-ID: On Fri, 30 Jul 2004 at 20:50 -0700, Aaron W. West wrote: > $ perl -le '$x="stargazing"; > $y=\substr($x,0,4); > print $y; > $$y="sun"; > print $x; > print $$y > use Data::Dumper; > print Dumper($y)' > > Output: > LVALUE(0x10101570) > sungazing > sung > cannot handle ref type 9 at /usr/local/lib/perl5/5.8.4/cygwin/Data/Dumper.pm > line 158. > > Dumper doesn't know how to handle refs to substrings, apparently. Funny, I get "use" not allowed in expression at -e line 7, at end of line syntax error at -e line 7, near "$y use Data::Dumper" Execution of -e aborted due to compilation errors. Perhaps it's the missing semi-colon after the print $$y :-) Did you submit a perlbug on it yet? From tallpeak at hotmail.com Sat Jul 31 10:41:45 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: refs to substrings contain lvalues References: <20040730203156.9FB3D86AE9@ws7-1.us4.outblaze.com> Message-ID: oops, I did a copy-and-paste thing...adding to my code and output in the email instead of copying it all over again. I'd be inclined to let someone more concerned about it than I submit a perlbug. It's in Data::Dumper, and that's not core perl, is it? As you can see this does not cause the program to die: $ perl -le '$x="stargazing"; $y=\substr($x,0,4); print $y; $$y="sun"; print $x; print $$y; use Data::Dumper; print Dumper($y); print "done"' Output: LVALUE(0x10101570) sungazing sung cannot handle ref type 9 at /usr/local/lib/perl5/5.8.4/cygwin/Data/Dumper.pm line 158. $VAR1 = ; done Okay, I reported a bug to Data::Dumper, classified as "unimportant". Ticket 7190 created in queue 'Data-Dumper'. ----- Original Message ----- From: "David Dyck" .. Perhaps it's the missing semi-colon after the print $$y :-) Did you submit a perlbug on it yet? From david.dyck at fluke.com Sat Jul 31 22:42:44 2004 From: david.dyck at fluke.com (David Dyck) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: refs to substrings contain lvalues In-Reply-To: References: <20040730203156.9FB3D86AE9@ws7-1.us4.outblaze.com> Message-ID: On Sat, 31 Jul 2004 at 08:41 -0700, Aaron W. West wrote: > I'd be inclined to let someone more concerned about it than I submit a > perlbug. It's in Data::Dumper, and that's not core perl, is it? It is core in the bleading edge perls as ext/Data/Dumper/Dumper.pm > Okay, I reported a bug to Data::Dumper, classified as "unimportant". Thanks From sthoenna at efn.org Sat Jul 31 23:51:45 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:23 2004 Subject: SPUG: refs to substrings contain lvalues In-Reply-To: References: <20040730203156.9FB3D86AE9@ws7-1.us4.outblaze.com> Message-ID: <20040801045145.GA1996@efn.org> On Fri, Jul 30, 2004 at 08:50:37PM -0700, "Aaron W. West" wrote: > $ perl -le '$x="stargazing"; > $y=\substr($x,0,4); > print $y; > $$y="sun"; > print $x; > print $$y > use Data::Dumper; > print Dumper($y)' > > Output: > LVALUE(0x10101570) > sungazing > sung > cannot handle ref type 9 at /usr/local/lib/perl5/5.8.4/cygwin/Data/Dumper.pm > line 158. Whether that last print $$y gives "sung" is subject to change; in development versions of perl it currently gives "sun", but there's been some hesitation to make this change in maintenance versions. Since 5.8.1 there's been a warning in perlfunc against relying on it to stay the same.