From rjbs-perl-abe at lists.manxome.org Mon Jul 3 07:55:38 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 3 Jul 2006 10:55:38 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? Message-ID: <20060703145538.GA16508@knight> Hey, guys. I meant to get this email out sooner, but YAPC was last week and I was distracted. This is a lousy excuse, as I still had time to read comics and watch Doctor Who, but at least it's Perl-related. Frankly, YAPC was totally awesome. Wouldn't you like to come hear about it? Or maybe you'd rather I stfu so you can tell us all your latest war story. That's cool, too. Wednesday will be the first Wednesday of the month, our new traditional meeting time. I'm not sure how many of you can make it: John has moved and may decide that he's too "busy" with "moving" and his "family" and his "new job" to make it. Tom is, as I understand it, going to be a father (again) any day now. Me? I'm never too busy to hang out with you guys. That's right, you are all my heroes. If anyone can make it, let me know. I am down for hanging out with anyone, even if it's just some random lurker who hasn't shown up before. There was talk about changing the venue for this coming meeting, which is fine with me, too. I like McGrady's, but Bethlehem has plenty of other good places. One suggestion (which would be good with me!) was Penn Pizza, located at New and Broad in downtown Bethlehem. Anyway... enough. If you can make it, drop the list a line. If I don't hear from anyone, I'll probably stay home, eat crackers, and stare at the wall. That's what my life is like without you guys. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060703/40e91cb7/attachment.bin From faber at linuxnj.com Mon Jul 3 08:58:33 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 3 Jul 2006 11:58:33 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060703145538.GA16508@knight> References: <20060703145538.GA16508@knight> Message-ID: <20060703155832.GC7532@neptune.faber.nom> On 03/07/06 10:55 -0400, Ricardo SIGNES wrote: > If anyone can make it, let me know. I am down for hanging out with anyone, > even if it's just some random lurker who hasn't shown up before. You make a guy feel *so* special. > There was talk about changing the venue for this coming meeting, which is fine > with me, too. I like McGrady's, but Bethlehem has plenty of other good places. > One suggestion (which would be good with me!) was Penn Pizza, located at New > and Broad in downtown Bethlehem. As long as the beer selection is good, I'm game for a new place. So how is their beer selection? How far is this from McGrady's (which is the only place I know of in Bethlehem)? > Anyway... enough. If you can make it, drop the list a line. If I don't hear > from anyone, I'll probably stay home, eat crackers, and stare at the wall. > That's what my life is like without you guys. And I thought my life was sad and lonely! -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Mon Jul 3 09:40:09 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 3 Jul 2006 12:40:09 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060703155832.GC7532@neptune.faber.nom> References: <20060703145538.GA16508@knight> <20060703155832.GC7532@neptune.faber.nom> Message-ID: <20060703164009.GA16750@knight.local> * "Faber J. Fedor" [2006-07-03T11:58:33] > As long as the beer selection is good, I'm game for a new place. So how > is their beer selection? It's OK. They only sell bottles, as I recall, but they have a couple good ones. Better beer selection could be had at the Brew Works, which is sort of pub-y, but more restaurant-y than McGrady's. Brew Works: better beer selection, more food selection Penn Pizza: less beer selection, better food (if you want pizza-type food) > How far is this from McGrady's (which is the only place I know of in > Bethlehem)? Both are less than a mile away. They're just across the Fahy bridge. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060703/b2d637a1/attachment.bin From faber at linuxnj.com Mon Jul 3 18:21:05 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 3 Jul 2006 21:21:05 -0400 Subject: [ABE.pm] PERLLIB problem Message-ID: <20060704012105.GA10513@neptune.faber.nom> I'm missing something obvious here but I just can't see it. Why is my Portfolio.pm not being found when it resides in the reports/ dir even though reports/ is listed in $PERLLIB? [faber at myserver1 libs]$ echo $PERLLIB /home/faber/libs:/home/faber/libs/reports [faber at myserver1 libs]$ pwd /home/faber/libs [faber at myserver1 libs]$ ls -al total 56 drwxrwxr-x 3 faber faber 4096 Jul 3 21:28 . drwx---r-x 34 faber faber 4096 Jul 3 21:27 .. -rw-rw-r-- 1 faber faber 2951 Mar 10 10:15 my_cgi.pm -rw-rw-r-- 1 faber faber 10359 Dec 1 2005 my_datetime.pm -rw-rw-r-- 1 faber faber 21898 Jun 24 09:37 mydb.pm -rw-rw-r-- 1 faber faber 1751 Dec 6 2005 my_portfolios.pm drwxrwxr-x 2 faber faber 4096 Jul 3 21:27 reports [faber at myserver1 libs]$ ls reports/ FundamentalExposureTable.pm RelRetIndustryExposureTable.pm ReportTable.pm IndustryExposureTable.pm RelRetReportTable.pm SectorExposureTable.pm Portfolio.pm RelRetSectorExposureTable.pm SummaryTable.pm [faber at myserver1 libs]$ perl -e 'use Portfolio;' Can't locate Portfolio.pm in @INC (@INC contains: yada-yada-yada [faber at myserver1 libs]$ ln -s reports/Portfolio.pm Portfolio.pm [faber at myserver1 libs]$ perl -e 'use Portfolio;' Global symbol "$self" requires explicit package name at yada-yada-yada -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Mon Jul 3 19:12:02 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 3 Jul 2006 22:12:02 -0400 Subject: [ABE.pm] PERLLIB problem In-Reply-To: <20060704012105.GA10513@neptune.faber.nom> References: <20060704012105.GA10513@neptune.faber.nom> Message-ID: <20060704021202.GB22146@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-03T21:21:05] > I'm missing something obvious here but I just can't see it. > Why is my Portfolio.pm not being found when it resides in the > reports/ dir even though reports/ is listed in $PERLLIB? Is PERL5LIB defined? It trumps PERLLIB. > [faber at myserver1 libs]$ perl -e 'use Portfolio;' > Can't locate Portfolio.pm in @INC (@INC contains: yada-yada-yada You know, yadda-yadda-ing that out is REALLY not helpful! @INC is what we want to know about! :P Also show the output of: perl -V:path_sep -- rjbs -------------- 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/abe-pm/attachments/20060703/1b3bd96a/attachment.bin From faber at linuxnj.com Mon Jul 3 19:35:45 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 3 Jul 2006 22:35:45 -0400 Subject: [ABE.pm] PERLLIB problem In-Reply-To: <20060704021202.GB22146@zodiac.codesimply.com> References: <20060704012105.GA10513@neptune.faber.nom> <20060704021202.GB22146@zodiac.codesimply.com> Message-ID: <20060704023545.GA10639@neptune.faber.nom> On 03/07/06 22:12 -0400, Ricardo SIGNES wrote: > * "Faber J. Fedor" [2006-07-03T21:21:05] > > I'm missing something obvious here but I just can't see it. > > Why is my Portfolio.pm not being found when it resides in the > > reports/ dir even though reports/ is listed in $PERLLIB? > > Is PERL5LIB defined? It trumps PERLLIB. That was it! Strangely, PERL5LIB is defined in only one of my terminals; the one I ws running the program in. :-? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Mon Jul 3 19:54:29 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 3 Jul 2006 22:54:29 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060703164009.GA16750@knight.local> References: <20060703145538.GA16508@knight> <20060703155832.GC7532@neptune.faber.nom> <20060703164009.GA16750@knight.local> Message-ID: <20060704025429.GB5132@zodiac.codesimply.com> * Ricardo SIGNES [2006-07-03T12:40:09] > Brew Works: better beer selection, more food selection > Penn Pizza: less beer selection, better food (if you want pizza-type food) Preferences? Let's set a location. I'm OK with either one: white pizza (mmm) from Penn or fish'n'chips from Brew Works. -- rjbs -------------- 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/abe-pm/attachments/20060703/f11effc6/attachment.bin From faber at linuxnj.com Mon Jul 3 20:40:20 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 3 Jul 2006 23:40:20 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060704025429.GB5132@zodiac.codesimply.com> References: <20060703145538.GA16508@knight> <20060703155832.GC7532@neptune.faber.nom> <20060703164009.GA16750@knight.local> <20060704025429.GB5132@zodiac.codesimply.com> Message-ID: <20060704034020.GA10880@neptune.faber.nom> On 03/07/06 22:54 -0400, Ricardo SIGNES wrote: > * Ricardo SIGNES [2006-07-03T12:40:09] > > Brew Works: better beer selection, more food selection > > Penn Pizza: less beer selection, better food (if you want pizza-type food) > > Preferences? Let's set a location. I'm OK with either one: white pizza (mmm) White pizza is an abomination! > from Penn or fish'n'chips from Brew Works. Brew Works is where we had the first PM meeting, right? Good place, but I'll vote for the pizza place since I've never been there. Besides, I'm still looking for a good pizza place this side of the Appalachia. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Tue Jul 4 13:20:53 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 4 Jul 2006 16:20:53 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060704034020.GA10880@neptune.faber.nom> References: <20060703145538.GA16508@knight> <20060703155832.GC7532@neptune.faber.nom> <20060703164009.GA16750@knight.local> <20060704025429.GB5132@zodiac.codesimply.com> <20060704034020.GA10880@neptune.faber.nom> Message-ID: <20060704202053.GA313@knight.local> * "Faber J. Fedor" [2006-07-03T23:40:20] > > Preferences? Let's set a location. I'm OK with either one: white pizza > > (mmm) > > White pizza is an abomination! You might change your mind if you tried Joe's. Maybe if there are enough of us to warrant a few pizzas, we'll get one wight and you can try a slice. Mmm... > Brew Works is where we had the first PM meeting, right? Good place, but > I'll vote for the pizza place since I've never been there. Besides, I'm > still looking for a good pizza place this side of the Appalachia. Cool. See you there. http://maps.google.com/maps?f=q&hl=en&sll=37.0625,-95.677068&sspn=64.928385,89.824219&q=penn+pizza,+bethlehem,+pa&ie=UTF8&latlng=40625833,-75370833,12239520594720858389 -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060704/377160bf/attachment.bin From faber at linuxnj.com Wed Jul 5 19:18:13 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 5 Jul 2006 22:18:13 -0400 Subject: [ABE.pm] Speaking of stupid programming Message-ID: <20060706021813.GA15989@neptune.faber.nom> Since we did touch on the subject at dinner tonight (white pizza is still an abomination but anchovies on red sauce is even worse!) have you guys ever seen this site? http://thedailywtf.com/default.aspx -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From fiedlert at gmail.com Thu Jul 6 03:10:53 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 6 Jul 2006 06:10:53 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060703145538.GA16508@knight> References: <20060703145538.GA16508@knight> Message-ID: <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> Sorry I missed this one - hopefully Ill get to the August meet. Ted On 7/3/06, Ricardo SIGNES wrote: > > Hey, guys. I meant to get this email out sooner, but YAPC was last week and > I was distracted. This is a lousy excuse, as I still had time to read comics > and watch Doctor Who, but at least it's Perl-related. > > Frankly, YAPC was totally awesome. Wouldn't you like to come hear about it? > Or maybe you'd rather I stfu so you can tell us all your latest war story. > That's cool, too. > > Wednesday will be the first Wednesday of the month, our new traditional meeting > time. I'm not sure how many of you can make it: John has moved and may decide > that he's too "busy" with "moving" and his "family" and his "new job" to make > it. Tom is, as I understand it, going to be a father (again) any day now. Me? > I'm never too busy to hang out with you guys. That's right, you are all my > heroes. > > If anyone can make it, let me know. I am down for hanging out with anyone, > even if it's just some random lurker who hasn't shown up before. > > There was talk about changing the venue for this coming meeting, which is fine > with me, too. I like McGrady's, but Bethlehem has plenty of other good places. > One suggestion (which would be good with me!) was Penn Pizza, located at New > and Broad in downtown Bethlehem. > > Anyway... enough. If you can make it, drop the list a line. If I don't hear > from anyone, I'll probably stay home, eat crackers, and stare at the wall. > That's what my life is like without you guys. > > -- > rjbs > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > > -- "The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower." -- Robert M Pirsig From fiedlert at gmail.com Thu Jul 6 03:10:53 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 6 Jul 2006 06:10:53 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060703145538.GA16508@knight> References: <20060703145538.GA16508@knight> Message-ID: <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> Sorry I missed this one - hopefully Ill get to the August meet. Ted On 7/3/06, Ricardo SIGNES wrote: > > Hey, guys. I meant to get this email out sooner, but YAPC was last week and > I was distracted. This is a lousy excuse, as I still had time to read comics > and watch Doctor Who, but at least it's Perl-related. > > Frankly, YAPC was totally awesome. Wouldn't you like to come hear about it? > Or maybe you'd rather I stfu so you can tell us all your latest war story. > That's cool, too. > > Wednesday will be the first Wednesday of the month, our new traditional meeting > time. I'm not sure how many of you can make it: John has moved and may decide > that he's too "busy" with "moving" and his "family" and his "new job" to make > it. Tom is, as I understand it, going to be a father (again) any day now. Me? > I'm never too busy to hang out with you guys. That's right, you are all my > heroes. > > If anyone can make it, let me know. I am down for hanging out with anyone, > even if it's just some random lurker who hasn't shown up before. > > There was talk about changing the venue for this coming meeting, which is fine > with me, too. I like McGrady's, but Bethlehem has plenty of other good places. > One suggestion (which would be good with me!) was Penn Pizza, located at New > and Broad in downtown Bethlehem. > > Anyway... enough. If you can make it, drop the list a line. If I don't hear > from anyone, I'll probably stay home, eat crackers, and stare at the wall. > That's what my life is like without you guys. > > -- > rjbs > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > > -- "The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower." -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Thu Jul 6 05:15:51 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 6 Jul 2006 08:15:51 -0400 Subject: [ABE.pm] Speaking of stupid programming In-Reply-To: <20060706021813.GA15989@neptune.faber.nom> References: <20060706021813.GA15989@neptune.faber.nom> Message-ID: <20060706121551.GB30934@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-05T22:18:13] > http://thedailywtf.com/default.aspx Heheh, yeah. I used to read it regularly, then I gave up because it got pretty boring. I've started again recently, though, as things have gotten somewhat more interesting. I really liked yesterday's "x-data" one. -- rjbs -------------- 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/abe-pm/attachments/20060706/741fadfc/attachment.bin From rjbs-perl-abe at lists.manxome.org Thu Jul 6 05:16:35 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 6 Jul 2006 08:16:35 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> Message-ID: <20060706121635.GC30934@zodiac.codesimply.com> * Ted Fiedler [2006-07-06T06:10:53] > Sorry I missed this one - hopefully Ill get to the August meet. If you don't, we may have to keep your security deposit. -- rjbs -------------- 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/abe-pm/attachments/20060706/1db1c253/attachment.bin From fiedlert at gmail.com Thu Jul 6 05:45:14 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 6 Jul 2006 08:45:14 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060706121635.GC30934@zodiac.codesimply.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> Message-ID: <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> I remember you saying someting about the Perl Email Project and that you have taken over or are taking over as lead developer - or I may be totally mistaken, and thinking of someone else entirely ;) As Ive stated my employer forces me to run some mail servers, and I have quite a few ongoing tasks... Anyway, after you told me about Mail::DeliveryStatus::BounceParser and I saw its usefulness - and have yet to utitlize... Id like to help out in any way possible - even if its only testing or documentation. Let me know whe or if you need any help. On 7/6/06, Ricardo SIGNES wrote: > * Ted Fiedler [2006-07-06T06:10:53] > > Sorry I missed this one - hopefully Ill get to the August meet. > > If you don't, we may have to keep your security deposit. > > -- > rjbs > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iD8DBQFErP8j5IEwYcR13KMRAiZrAJ98+8USpSNfElvbWoXjzWacquQw5gCfYvMU > dgCgiFNl+cfnWSbHuE4n6yY= > =0Fr8 > -----END PGP SIGNATURE----- > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- "The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower." -- Robert M Pirsig From fiedlert at gmail.com Thu Jul 6 05:45:14 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 6 Jul 2006 08:45:14 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <20060706121635.GC30934@zodiac.codesimply.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> Message-ID: <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> I remember you saying someting about the Perl Email Project and that you have taken over or are taking over as lead developer - or I may be totally mistaken, and thinking of someone else entirely ;) As Ive stated my employer forces me to run some mail servers, and I have quite a few ongoing tasks... Anyway, after you told me about Mail::DeliveryStatus::BounceParser and I saw its usefulness - and have yet to utitlize... Id like to help out in any way possible - even if its only testing or documentation. Let me know whe or if you need any help. On 7/6/06, Ricardo SIGNES wrote: > * Ted Fiedler [2006-07-06T06:10:53] > > Sorry I missed this one - hopefully Ill get to the August meet. > > If you don't, we may have to keep your security deposit. > > -- > rjbs > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iD8DBQFErP8j5IEwYcR13KMRAiZrAJ98+8USpSNfElvbWoXjzWacquQw5gCfYvMU > dgCgiFNl+cfnWSbHuE4n6yY= > =0Fr8 > -----END PGP SIGNATURE----- > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- "The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower." -- Robert M Pirsig From faber at linuxnj.com Thu Jul 6 05:57:32 2006 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 6 Jul 2006 08:57:32 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> Message-ID: <300ccfa50607060557s65b0c1cdhfbca9d4f6fa1649a@mail.gmail.com> On 7/6/06, Ted Fiedler wrote: > > Anyway, after you told me about > Mail::DeliveryStatus::BounceParser and I saw its usefulness Well? Are you going to leave the rest of us hanging? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060706/03fa384a/attachment.html From fiedlert at gmail.com Thu Jul 6 06:22:11 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 6 Jul 2006 09:22:11 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <300ccfa50607060557s65b0c1cdhfbca9d4f6fa1649a@mail.gmail.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> <300ccfa50607060557s65b0c1cdhfbca9d4f6fa1649a@mail.gmail.com> Message-ID: <814422ce0607060622s77bf98deme3eb766ea7a436ee@mail.gmail.com> :) I need to remove a lot ( possibly thousdands ) of unused email accounts from a mail server. There are a few issues/points. 1) I dont want to delete any active accounts 2) a lot of people just have .forward files - they never actually log in 3) forcing a mass passowrd change will not flush out people using .forward files 4) we dont care if alumni are using old email accounts - I just need to find the unused ones... Ricardo said that by analyzing the bounced messages I could find a large number of unused accounts. I have not yet done any testing because Ive been pulled into some projects that my company has deemed more important. Ted On 7/6/06, Faber Fedor wrote: > On 7/6/06, Ted Fiedler wrote: > > > Anyway, after you told me about > > Mail::DeliveryStatus::BounceParser and I saw its > usefulness > > > Well? Are you going to leave the rest of us hanging? > > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- "The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower." -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Thu Jul 6 15:44:49 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 6 Jul 2006 18:44:49 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> Message-ID: <20060706224449.GB27970@zodiac.codesimply.com> * Ted Fiedler [2006-07-06T08:45:14] > I remember you saying someting about the Perl Email Project and that > you have taken over or are taking over as lead developer - or I may be Gosh, had I mentioned that apart from last night over beer? Weird! Well, it's true! You can read more (but not a whole lot more, yet) about PEP here: http://pep.pobox.com/ > Mail::DeliveryStatus::BounceParser and I saw its usefulness - and have > yet to utitlize... Id like to help out in any way possible - even if > its only testing or documentation. Let me know whe or if you need any > help. PEP can always use help! Here are some ways: 1. join the mailing list (email pep-subscribe at perl.org) to stay up to date 2. help write more tests for any of the modules in the PEP svn repository 3. flood the list with good ideas 4. report any bug you uncover; including tests is great Right now my big push is for Step Two. I'm writing a lot of tests, which is helping to uncover some minor problems here and there. I'm focusing on Email::Send, right now, but almost everything could use some TLC. The bounceparser is a big untested mess. It works well enough that we've used it in production for years, but it has issues, too. Part of making it more testable is going to require establishing a corpus of bounces to use as tests -- and non-bounces, for that matter. I'd love a pile of unique or interesting bounce messages that can be used as tests. http://rjbs.manxome.org/rubric/entry/1300 -- rjbs -------------- 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/abe-pm/attachments/20060706/5657d814/attachment.bin From rjbs-perl-abe at lists.manxome.org Thu Jul 6 15:44:49 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 6 Jul 2006 18:44:49 -0400 Subject: [ABE.pm] Perl Mongers Unite! Dinner on Wednesday? In-Reply-To: <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> References: <20060703145538.GA16508@knight> <814422ce0607060310i51dde2f1vb2695daba1e653b6@mail.gmail.com> <20060706121635.GC30934@zodiac.codesimply.com> <814422ce0607060545r738db041h66fb9a07a483dc62@mail.gmail.com> Message-ID: <20060706224449.GB27970@zodiac.codesimply.com> * Ted Fiedler [2006-07-06T08:45:14] > I remember you saying someting about the Perl Email Project and that > you have taken over or are taking over as lead developer - or I may be Gosh, had I mentioned that apart from last night over beer? Weird! Well, it's true! You can read more (but not a whole lot more, yet) about PEP here: http://pep.pobox.com/ > Mail::DeliveryStatus::BounceParser and I saw its usefulness - and have > yet to utitlize... Id like to help out in any way possible - even if > its only testing or documentation. Let me know whe or if you need any > help. PEP can always use help! Here are some ways: 1. join the mailing list (email pep-subscribe at perl.org) to stay up to date 2. help write more tests for any of the modules in the PEP svn repository 3. flood the list with good ideas 4. report any bug you uncover; including tests is great Right now my big push is for Step Two. I'm writing a lot of tests, which is helping to uncover some minor problems here and there. I'm focusing on Email::Send, right now, but almost everything could use some TLC. The bounceparser is a big untested mess. It works well enough that we've used it in production for years, but it has issues, too. Part of making it more testable is going to require establishing a corpus of bounces to use as tests -- and non-bounces, for that matter. I'd love a pile of unique or interesting bounce messages that can be used as tests. http://rjbs.manxome.org/rubric/entry/1300 -- rjbs -------------- 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/abe-pm/attachments/20060706/5657d814/attachment-0001.bin From rjbs-perl-abe at lists.manxome.org Sun Jul 9 07:19:07 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sun, 9 Jul 2006 10:19:07 -0400 Subject: [ABE.pm] perl mongers shirts? Message-ID: <20060709141907.GB8864@zodiac.codesimply.com> The Perl Mongers are getting together another big t-shirt order. Perl Mongers t-shirts look like this: http://omaha.pm.org/shirts.png If you'd like me to order one for you (every group orders for the group, to save the top-level order-er some hassle), let me know. I'm guessing they'll be about $20, but I haven't heard yet. I will certainly be getting some. -- rjbs -------------- 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/abe-pm/attachments/20060709/dd71920e/attachment.bin From rjbs-perl-abe at lists.manxome.org Sun Jul 9 07:23:39 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sun, 9 Jul 2006 10:23:39 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709141907.GB8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> Message-ID: <20060709142339.GD8864@zodiac.codesimply.com> * Ricardo SIGNES [2006-07-09T10:19:07] > If you'd like me to order one for you (every group orders for the group, to > save the top-level order-er some hassle), let me know. I'm guessing they'll > be about $20, but I haven't heard yet. Yow, ok, the actual estimate (still no firm quote) is $8-ish for XXL+, $6-ish for other sizes. Pay more and your money goes to the Perl Foundation. ;) -- rjbs -------------- 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/abe-pm/attachments/20060709/fcc79381/attachment.bin From rjbs-perl-abe at lists.manxome.org Sun Jul 9 07:24:14 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sun, 9 Jul 2006 10:24:14 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709141907.GB8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> Message-ID: <20060709142414.GE8864@zodiac.codesimply.com> * Ricardo SIGNES [2006-07-09T10:19:07] > t-shirts look like this: > > http://omaha.pm.org/shirts.png Seriously, I shouldn't send mail on Sunday mornings. They come in white-on-black and black-on-grey ("ash"). -- rjbs -------------- 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/abe-pm/attachments/20060709/4a456b64/attachment.bin From rjbs-perl-abe at lists.manxome.org Sun Jul 9 07:24:14 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sun, 9 Jul 2006 10:24:14 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709141907.GB8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> Message-ID: <20060709142414.GE8864@zodiac.codesimply.com> * Ricardo SIGNES [2006-07-09T10:19:07] > t-shirts look like this: > > http://omaha.pm.org/shirts.png Seriously, I shouldn't send mail on Sunday mornings. They come in white-on-black and black-on-grey ("ash"). -- rjbs -------------- 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/abe-pm/attachments/20060709/4a456b64/attachment-0001.bin From faber at linuxnj.com Sun Jul 9 19:45:44 2006 From: faber at linuxnj.com (Faber Fedor) Date: Sun, 9 Jul 2006 22:45:44 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709141907.GB8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> Message-ID: <300ccfa50607091945qfb40457ke2cab774cfa00dc6@mail.gmail.com> On 7/9/06, Ricardo SIGNES wrote: > > > The Perl Mongers are getting together another big t-shirt order. Perl > Mongers > t-shirts look like this: > > http://omaha.pm.org/shirts.png > > If you'd like me to order one for you (every group orders for the group, > to > save the top-level order-er some hassle), let me know. I'm guessing > they'll be > about $20, but I haven't heard yet. Cool! Just the other day I was saying to myself that I need some more cool/geek t-shirts. Put me down for three XLs. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060709/a3f5043f/attachment.html From faber at linuxnj.com Sun Jul 9 19:45:44 2006 From: faber at linuxnj.com (Faber Fedor) Date: Sun, 9 Jul 2006 22:45:44 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709141907.GB8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> Message-ID: <300ccfa50607091945qfb40457ke2cab774cfa00dc6@mail.gmail.com> On 7/9/06, Ricardo SIGNES wrote: > > > The Perl Mongers are getting together another big t-shirt order. Perl > Mongers > t-shirts look like this: > > http://omaha.pm.org/shirts.png > > If you'd like me to order one for you (every group orders for the group, > to > save the top-level order-er some hassle), let me know. I'm guessing > they'll be > about $20, but I haven't heard yet. Cool! Just the other day I was saying to myself that I need some more cool/geek t-shirts. Put me down for three XLs. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060709/a3f5043f/attachment-0001.html From john-abe at apt202.net Mon Jul 10 07:09:55 2006 From: john-abe at apt202.net (John Cappiello) Date: Mon, 10 Jul 2006 10:09:55 -0400 Subject: [ABE.pm] perl mongers shirts? In-Reply-To: <20060709142339.GD8864@zodiac.codesimply.com> References: <20060709141907.GB8864@zodiac.codesimply.com> <20060709142339.GD8864@zodiac.codesimply.com> Message-ID: <20060710140954.GG6802@apt202.net> On Sun, Jul 09, 2006 at 10:23:39AM -0400, Ricardo SIGNES wrote: > Yow, ok, the actual estimate (still no firm quote) is $8-ish for XXL+, $6-ish > for other sizes. Pay more and your money goes to the Perl Foundation. ;) I'm in for 1 please. That is, if I'm still allowed to intereact with youe abeers. Medium. -- jcap From rjbs-perl-abe at lists.manxome.org Wed Jul 12 22:15:23 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 13 Jul 2006 01:15:23 -0400 Subject: [ABE.pm] $object->meaenmhtod_(@arg) Message-ID: <20060713051523.GA4196@knight.local> I'm not sure whether I'll upload this to CPAN, but here's something I wrote tonight, when I decided I didn't want to finish cleaning my desk or go to bed. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: Amce-CNA-0.01.tar.gz Type: application/x-tar-gz Size: 2371 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060713/9439a3a1/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060713/9439a3a1/attachment-0001.bin From rjbs-perl-abe at lists.manxome.org Thu Jul 13 11:29:44 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 13 Jul 2006 14:29:44 -0400 Subject: [ABE.pm] $object->meaenmhtod_(@arg) In-Reply-To: <20060713051523.GA4196@knight.local> References: <20060713051523.GA4196@knight.local> Message-ID: <20060713182944.GA6626@zodiac.codesimply.com> * Ricardo SIGNES [2006-07-13T01:15:23] > I'm not sure whether I'll upload this to CPAN, but here's something I wrote > tonight, when I decided I didn't want to finish cleaning my desk or go to bed. I couldn't stop myself. http://search.cpan.org/~rjbs/Amce-CNA-0.03/lib/Amce/CNA.pm -- rjbs -------------- 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/abe-pm/attachments/20060713/6ed4f831/attachment.bin From faber at linuxnj.com Thu Jul 13 19:16:43 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Thu, 13 Jul 2006 22:16:43 -0400 Subject: [ABE.pm] $object->meaenmhtod_(@arg) In-Reply-To: <20060713182944.GA6626@zodiac.codesimply.com> References: <20060713051523.GA4196@knight.local> <20060713182944.GA6626@zodiac.codesimply.com> Message-ID: <20060714021642.GA13344@neptune.faber.nom> On 13/07/06 14:29 -0400, Ricardo SIGNES wrote: > * Ricardo SIGNES [2006-07-13T01:15:23] > > I'm not sure whether I'll upload this to CPAN, but here's something I wrote > > tonight, when I decided I didn't want to finish cleaning my desk or go to bed. > > I couldn't stop myself. > > http://search.cpan.org/~rjbs/Amce-CNA-0.03/lib/Amce/CNA.pm WTF? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Thu Jul 13 20:15:14 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 13 Jul 2006 23:15:14 -0400 Subject: [ABE.pm] $object->meaenmhtod_(@arg) In-Reply-To: <20060714021642.GA13344@neptune.faber.nom> References: <20060713051523.GA4196@knight.local> <20060713182944.GA6626@zodiac.codesimply.com> <20060714021642.GA13344@neptune.faber.nom> Message-ID: <20060714031514.GA2972@knight.local> * "Faber J. Fedor" [2006-07-13T22:16:43] > > * Ricardo SIGNES [2006-07-13T01:15:23] > > > I'm not sure whether I'll upload this to CPAN, but here's something I > > > wrote tonight, when I decided I didn't want to finish cleaning my desk or > > > go to bed. > > WTF? Could you figure out what it does? Or how? :) -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060713/380a74b2/attachment.bin From rjbs-perl-abe at lists.manxome.org Thu Jul 20 18:46:39 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 20 Jul 2006 21:46:39 -0400 Subject: [ABE.pm] see youse in two weeks Message-ID: <20060721014638.GA18207@zodiac.codesimply.com> Ladies! Gentlemen! I will see you on August 2nd. I don't know where. Maybe McGrady's again? Whatever! Tom will probably be waffling about whether to attend; he has a new son! That is awesome! We should encouage him to come by paying for his beer. Perl Mongers: free as in free beer. Just for Tom. I've been having sort of a mixed few weeks. I've been doing lots of patching on Perl Email Project code, but it's proving a bit harder to get other people involved than I'd expected. I think that, in the end, more people are interested in using email-handling code than writing it -- and with good reason. Blah! You know what I'm not in love with? MIME. Today is my birthday, and I got a few new games and books that have threatened to distract me from Perl hacking -- but fortunately one of them is Advanced Programming in the UNIX Environment, which I'm told is one of the bestest tech books around. I'm hoping that I can get distracted by it and become smarted. It's about a thousand pages, though. Yow! Is anyone interested in having a technical meeting any time in the near future? I'm cool with just hanging out and talking a little shop, but technical meetings can be fun, too. Ok, back to my vermouth, and then an early bed: early bus tomorrow! -- rjbs -------------- 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/abe-pm/attachments/20060720/3ffe335a/attachment.bin From faber at linuxnj.com Thu Jul 20 19:23:41 2006 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 20 Jul 2006 22:23:41 -0400 Subject: [ABE.pm] see youse in two weeks In-Reply-To: <20060721014638.GA18207@zodiac.codesimply.com> References: <20060721014638.GA18207@zodiac.codesimply.com> Message-ID: <300ccfa50607201923g3cfd15fbs203fbc141aad01f8@mail.gmail.com> On 7/20/06, Ricardo SIGNES wrote: > > Ladies! Gentlemen! Hope you don't mind me reading this as well. > I will see you on August 2nd. I don't know where. Maybe McGrady's again? > Whatever! As long as there is beer! Tom will probably be waffling about whether to attend; he has a new > son! That > is awesome! We should encouage him to come by paying for his beer. Perl > Mongers: free as in free beer. Just for Tom. But he has to supply the cigars! (Tom: Go with the Arture Fuentes "It's A Boy" cigars; they're short fillers, but good and cheal nevertheless.) Today is my birthday, Hmmm, how do we coordinate singing "Happy Birthday" through email (and not violate copyright at the same time)? > and I got a few new games and books that have threatened > to distract me from Perl hacking -- but fortunately one of them is > Advanced > Programming in the UNIX Environment, which I'm told is one of the bestest > tech > books around. It is. But I thought that was the first or second book everyone bought after they first installed Linux. :-? > I'm hoping that I can get distracted by it and become smarted. More than you'll ever want to know. My fave sections were the differences between the execs, forks and the section on hard/symlinks. > It's about a thousand pages, though. Yow! Try reading all of Knuth sometime! Is anyone interested in having a technical meeting any time in the near > future? > I'm cool with just hanging out and talking a little shop, but technical > meetings can be fun, too. Always! But where? We need some kind of presentation area, no? We can do beers afterwards. Ok, back to my vermouth, and then an early bed: early bus tomorrow! Back to my wine and then to pack: I'm headed to H.O.P.E. ( http://www.hopenumbersix.net/) tomorrow! :-) -- Faber -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060720/03f3509a/attachment.html From faber at linuxnj.com Thu Jul 20 19:23:41 2006 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 20 Jul 2006 22:23:41 -0400 Subject: [ABE.pm] see youse in two weeks In-Reply-To: <20060721014638.GA18207@zodiac.codesimply.com> References: <20060721014638.GA18207@zodiac.codesimply.com> Message-ID: <300ccfa50607201923g3cfd15fbs203fbc141aad01f8@mail.gmail.com> On 7/20/06, Ricardo SIGNES wrote: > > Ladies! Gentlemen! Hope you don't mind me reading this as well. > I will see you on August 2nd. I don't know where. Maybe McGrady's again? > Whatever! As long as there is beer! Tom will probably be waffling about whether to attend; he has a new > son! That > is awesome! We should encouage him to come by paying for his beer. Perl > Mongers: free as in free beer. Just for Tom. But he has to supply the cigars! (Tom: Go with the Arture Fuentes "It's A Boy" cigars; they're short fillers, but good and cheal nevertheless.) Today is my birthday, Hmmm, how do we coordinate singing "Happy Birthday" through email (and not violate copyright at the same time)? > and I got a few new games and books that have threatened > to distract me from Perl hacking -- but fortunately one of them is > Advanced > Programming in the UNIX Environment, which I'm told is one of the bestest > tech > books around. It is. But I thought that was the first or second book everyone bought after they first installed Linux. :-? > I'm hoping that I can get distracted by it and become smarted. More than you'll ever want to know. My fave sections were the differences between the execs, forks and the section on hard/symlinks. > It's about a thousand pages, though. Yow! Try reading all of Knuth sometime! Is anyone interested in having a technical meeting any time in the near > future? > I'm cool with just hanging out and talking a little shop, but technical > meetings can be fun, too. Always! But where? We need some kind of presentation area, no? We can do beers afterwards. Ok, back to my vermouth, and then an early bed: early bus tomorrow! Back to my wine and then to pack: I'm headed to H.O.P.E. ( http://www.hopenumbersix.net/) tomorrow! :-) -- Faber -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060720/03f3509a/attachment-0001.html From fiedlert at gmail.com Fri Jul 21 17:24:40 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Fri, 21 Jul 2006 20:24:40 -0400 Subject: [ABE.pm] see youse in two weeks In-Reply-To: <300ccfa50607201923g3cfd15fbs203fbc141aad01f8@mail.gmail.com> References: <20060721014638.GA18207@zodiac.codesimply.com> <300ccfa50607201923g3cfd15fbs203fbc141aad01f8@mail.gmail.com> Message-ID: <814422ce0607211724v6b2b6a0dw1d1411988e4b4e0e@mail.gmail.com> Happy Birthday! Maybe we could ad a module Acme::Email::HappyBirthday to aid in singing in unison :) I will be at the next meeting, and I would not mind a technical meeting either. I do plan on starting some work on PEP - time is always an issue though for me - I have another contract position this weekend, in Binghamton... Ugh... Is anyone going to the Pittsburgh Perl Workshop in September? Ted On 7/20/06, Faber Fedor wrote: > On 7/20/06, Ricardo SIGNES wrote: > > Ladies! Gentlemen! > > Hope you don't mind me reading this as well. > > > I will see you on August 2nd. I don't know where. Maybe McGrady's again? > > Whatever! > > > As long as there is beer! > > > Tom will probably be waffling about whether to attend; he has a new son! > That > > is awesome! We should encouage him to come by paying for his beer. Perl > > Mongers: free as in free beer. Just for Tom. > > > But he has to supply the cigars! (Tom: Go with the Arture Fuentes "It's A > Boy" cigars; they're short fillers, but good and cheal nevertheless.) > > > Today is my birthday, > > Hmmm, how do we coordinate singing "Happy Birthday" through email (and not > violate copyright at the same time)? > > > and I got a few new games and books that have threatened > > to distract me from Perl hacking -- but fortunately one of them is > Advanced > > Programming in the UNIX Environment, which I'm told is one of the bestest > tech > > books around. > > > It is. But I thought that was the first or second book everyone bought > after they first installed Linux. :-? > > > I'm hoping that I can get distracted by it and become smarted. > > > More than you'll ever want to know. My fave sections were the differences > between the execs, forks and the section on hard/symlinks. > > > It's about a thousand pages, though. Yow! > > > Try reading all of Knuth sometime! > > > Is anyone interested in having a technical meeting any time in the near > future? > > I'm cool with just hanging out and talking a little shop, but technical > > meetings can be fun, too. > > > Always! But where? We need some kind of presentation area, no? We can do > beers afterwards. > > > > Ok, back to my vermouth, and then an early bed: early bus tomorrow! > > > Back to my wine and then to pack: I'm headed to H.O.P.E. > (http://www.hopenumbersix.net/) tomorrow! :-) > > -- > > Faber > > > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Fri Jul 21 17:58:59 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Fri, 21 Jul 2006 20:58:59 -0400 Subject: [ABE.pm] see youse in two weeks In-Reply-To: <814422ce0607211724v6b2b6a0dw1d1411988e4b4e0e@mail.gmail.com> References: <20060721014638.GA18207@zodiac.codesimply.com> <300ccfa50607201923g3cfd15fbs203fbc141aad01f8@mail.gmail.com> <814422ce0607211724v6b2b6a0dw1d1411988e4b4e0e@mail.gmail.com> Message-ID: <20060722005859.GA10339@zodiac.codesimply.com> * Ted Fiedler [2006-07-21T20:24:40] > Happy Birthday! Maybe we could ad a module Acme::Email::HappyBirthday > to aid in singing in unison :) Hm! > I will be at the next meeting, and I would not mind a technical meeting > either. I will have to secure a venue. Our contacts at Lehigh seem to be no longer really among us! > I do plan on starting some work on PEP - time is always an issue > though for me - I have another contract position this weekend, in > Binghamton... Ugh... Are you on the list? I will probably post a "things you can do to help" list soon. > Is anyone going to the Pittsburgh Perl Workshop in September? Yes! I will be speaking. The topic is not yet firmly decided. -- rjbs -------------- 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/abe-pm/attachments/20060721/bec6d815/attachment.bin From faber at linuxnj.com Wed Jul 26 10:26:47 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 26 Jul 2006 13:26:47 -0400 Subject: [ABE.pm] Text::Template Q Message-ID: <20060726172647.GC23651@neptune.faber.nom> I'm using Text::Template to print out reports. All this time, I've been doing this: my $report_destination = \*STDOUT; printHeader(); sub printHeader { return if ( is_debug() ); my $template = new Text::Template ( TYPE => 'FILE', SOURCE => 'html.template.header.relret_transparency_report'); my $text = $template->fill_in( OUTPUT => $report_destination, HASH => { port => \$port, rb => \$rb }); } and it's been working great. I now want to redirect the output to a file, so I thought simply doing this would work: open(OUTFILE, "> $myfile"); my $report_destination = \*OUTFILE; printHeader(); but it doesn't. What happens is the output does get written to file, but all of the variables are blank THEN the variables' contents are written to STDOUT. If I change the fill in function to this: my $text = $template->fill_in( HASH => { port => \$port, rb => \$rb }); then $text contains all of the text but no variable values. Upon quitting the program, the values are written to STDOUT. Is there some magic about filehandles or scoping that I don't know about? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Wed Jul 26 11:04:48 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 26 Jul 2006 14:04:48 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060726172647.GC23651@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> Message-ID: <20060726180448.GA10689@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-26T13:26:47] > I now want to redirect the output to a file, so I thought simply > doing this would work: > > open(OUTFILE, "> $myfile"); > my $report_destination = \*OUTFILE; > printHeader(); You are using antique file handles. The all-caps, all-global filehandles will come back to haunt you some day. Instead, write this: open my $report_dest, '>', $myfile; printHeader; Also, you should always check that the open succeeded. open my $report_dest, '>', $myfile or die "failed to open $myfile: $!"; printHeader; > Is there some magic about filehandles or scoping that I don't know about? I'm not sure how Text::Template wants to receive its fh references. They're a little weird, in general. -- rjbs -------------- 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/abe-pm/attachments/20060726/6235ca39/attachment.bin From dmagnuszewski at mandtbank.com Wed Jul 26 11:32:40 2006 From: dmagnuszewski at mandtbank.com (DANIEL MAGNUSZEWSKI) Date: Wed, 26 Jul 2006 14:32:40 -0400 Subject: [ABE.pm] Pinging For ABE Mongers... Message-ID: Fellow Mongers, I am from Buffalo, NY (and member of the Buffalo Perl Mongers), but my Dad lives in Northampton. I am going down to visit him on August 4th through the 6th. I met Rick during YAPC this year, and mentioned that I'd probably be swinging down sometime this summer, and that I'd let him know when I was going to be in town. I figured that this would be a good way to meet with some new Mongers. While I'm in the area, I can duck out for an hour or two if there was something going on. I'm down for anything ranging from tech-talk over beers to an actual technical meeting. I'm not sure how far away Northampton is, but from what I know, its in your general area. Let me know if anyone is interested. -Dan From faber at linuxnj.com Wed Jul 26 11:39:34 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 26 Jul 2006 14:39:34 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060726180448.GA10689@zodiac.codesimply.com> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> Message-ID: <20060726183934.GA24135@neptune.faber.nom> On 26/07/06 14:04 -0400, Ricardo SIGNES wrote: > * "Faber J. Fedor" [2006-07-26T13:26:47] > > I now want to redirect the output to a file, so I thought simply > > doing this would work: > > > > open(OUTFILE, "> $myfile"); > > my $report_destination = \*OUTFILE; > > printHeader(); > > You are using antique file handles. "Antique"?! I never got the memo! > The all-caps, all-global filehandles will come back to haunt you some day. And today was that day; when I switch to the new (?) style, T::T worked perfectly. So WTF is the difference between the two styles? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Wed Jul 26 11:41:55 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 26 Jul 2006 14:41:55 -0400 Subject: [ABE.pm] Pinging For ABE Mongers... In-Reply-To: References: Message-ID: <20060726184155.GB10689@zodiac.codesimply.com> * DANIEL MAGNUSZEWSKI [2006-07-26T14:32:40] > I am from Buffalo, NY (and member of the Buffalo Perl Mongers), but my > Dad lives in Northampton. I am going down to visit him on August 4th > through the 6th. Cool. Our monthly meeting will be on the 2nd, but I bet there are a few brave souls who would be willing to have ... A SECOND GATHERING that weekend. We can grab some beer and burgers, some time, and they will be delicious. > I'm not sure how far away Northampton is, but from what I know, its in your > general area. Google maps calls it 10.0 miles. -- rjbs -------------- 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/abe-pm/attachments/20060726/3235a415/attachment.bin From faber at linuxnj.com Wed Jul 26 12:24:59 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 26 Jul 2006 15:24:59 -0400 Subject: [ABE.pm] sorting an AoA Message-ID: <20060726192459.GA24245@neptune.faber.nom> I've got an array of arrays, to wit: my @array1 = ( ["company1", "1"], ["company2", "3"], ["company3", "1.5"], ) I need to numerically sort the AoA by the second column so I have my array2 = ( ["company1", "1"], ["company3", "1.5"], ["company2", "3"], ) Everything sort example I've seen so far returns an array of single values, i.e. my @array3 = ( "1", "1.5", "3", ) How do I get @array1 sorted into @array2? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From waltman at pobox.com Wed Jul 26 12:56:42 2006 From: waltman at pobox.com (Walt Mankowski) Date: Wed, 26 Jul 2006 15:56:42 -0400 Subject: [ABE.pm] sorting an AoA In-Reply-To: <20060726192459.GA24245@neptune.faber.nom> References: <20060726192459.GA24245@neptune.faber.nom> Message-ID: <20060726195642.GB13133@mawode.com> On Wed, Jul 26, 2006 at 03:24:59PM -0400, Faber J. Fedor wrote: > I've got an array of arrays, to wit: > > my @array1 = ( ["company1", "1"], > ["company2", "3"], > ["company3", "1.5"], > ) > > I need to numerically sort the AoA by the second column so I have > > my array2 = ( ["company1", "1"], > ["company3", "1.5"], > ["company2", "3"], > ) > > Everything sort example I've seen so far returns an array of single > values, i.e. > > my @array3 = ( "1", > "1.5", > "3", > ) > > How do I get @array1 sorted into @array2? This seems to work: my @array2 = sort {$a->[1] <=> $b->[1]} @array1; Walt -------------- 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/abe-pm/attachments/20060726/07d54fe7/attachment.bin From faber at linuxnj.com Wed Jul 26 13:06:32 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 26 Jul 2006 16:06:32 -0400 Subject: [ABE.pm] sorting an AoA In-Reply-To: <20060726195642.GB13133@mawode.com> References: <20060726192459.GA24245@neptune.faber.nom> <20060726195642.GB13133@mawode.com> Message-ID: <20060726200632.GA24460@neptune.faber.nom> On 26/07/06 15:56 -0400, Walt Mankowski wrote: > On Wed, Jul 26, 2006 at 03:24:59PM -0400, Faber J. Fedor wrote: > > How do I get @array1 sorted into @array2? > > This seems to work: > > my @array2 = sort {$a->[1] <=> $b->[1]} @array1; You're right. I obviously don't understand what's going on here (that's a Schwartzian transform, right?) because I thought it was returning a one-dimensional array. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Wed Jul 26 13:06:39 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 26 Jul 2006 16:06:39 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060726183934.GA24135@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> Message-ID: <20060726200639.GC10689@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-26T14:39:34] > And today was that day; when I switch to the new (?) style, T::T worked > perfectly. > > So WTF is the difference between the two styles? open FOO, " References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060726200639.GC10689@zodiac.codesimply.com> Message-ID: <300ccfa50607261313v62cab75t45710fb0cc5e328f@mail.gmail.com> On 7/26/06, Ricardo SIGNES wrote: > T::T's documentation did clearly requst a fh reference, not a typeglob > reference. Like I know the difference! :-) I assumed \*FILENAME would work because T::T mentioned \*STDOUT in there docs and the \ made it look like a reference to me. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060726/f230f807/attachment.html From waltman at pobox.com Wed Jul 26 13:20:40 2006 From: waltman at pobox.com (Walt Mankowski) Date: Wed, 26 Jul 2006 16:20:40 -0400 Subject: [ABE.pm] sorting an AoA In-Reply-To: <20060726200632.GA24460@neptune.faber.nom> References: <20060726192459.GA24245@neptune.faber.nom> <20060726195642.GB13133@mawode.com> <20060726200632.GA24460@neptune.faber.nom> Message-ID: <20060726202040.GD13133@mawode.com> On Wed, Jul 26, 2006 at 04:06:32PM -0400, Faber J. Fedor wrote: > On 26/07/06 15:56 -0400, Walt Mankowski wrote: > > On Wed, Jul 26, 2006 at 03:24:59PM -0400, Faber J. Fedor wrote: > > > How do I get @array1 sorted into @array2? > > > > This seems to work: > > > > my @array2 = sort {$a->[1] <=> $b->[1]} @array1; > > You're right. I obviously don't understand what's going on here (that's > a Schwartzian transform, right?) because I thought it was returning a > one-dimensional array. No, it's a simple sort comparison function. Sort takes pairs of values from @array1 and passes them to the block of code inside {} for comparison. The values are designated by $a and $b. $a and $b are array references, and we want to refer to the second item in the arrays, so we say $a->[1] and $b->[1]. The <=> thing, (aka the "spaceship operator") is mainly used with sort. It returns -1, 0, or 1 depending on whether the left argument is less than, equal to, or greater than the right argument. Walt -------------- 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/abe-pm/attachments/20060726/76d1b727/attachment.bin From rjbs-perl-abe at lists.manxome.org Wed Jul 26 13:27:28 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 26 Jul 2006 16:27:28 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <300ccfa50607261313v62cab75t45710fb0cc5e328f@mail.gmail.com> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060726200639.GC10689@zodiac.codesimply.com> <300ccfa50607261313v62cab75t45710fb0cc5e328f@mail.gmail.com> Message-ID: <20060726202728.GD10689@zodiac.codesimply.com> * Faber Fedor [2006-07-26T16:13:45] > >T::T's documentation did clearly requst a fh reference, not a typeglob > >reference. > > Like I know the difference! :-) > > I assumed \*FILENAME would work because T::T mentioned \*STDOUT in there > docs and the \ made it look like a reference to me. There may be something more subtle at play here, but I'm not sure... and that's yet another reason that using lexical filehandle references is better than passing around globs. -- rjbs -------------- 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/abe-pm/attachments/20060726/3612ff1f/attachment.bin From rjbs-perl-abe at lists.manxome.org Wed Jul 26 15:35:46 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 26 Jul 2006 18:35:46 -0400 Subject: [ABE.pm] sorting an AoA In-Reply-To: <20060726202040.GD13133@mawode.com> References: <20060726192459.GA24245@neptune.faber.nom> <20060726195642.GB13133@mawode.com> <20060726200632.GA24460@neptune.faber.nom> <20060726202040.GD13133@mawode.com> Message-ID: <20060726223546.GA12339@zodiac.codesimply.com> * Walt Mankowski [2006-07-26T16:20:40] > On Wed, Jul 26, 2006 at 04:06:32PM -0400, Faber J. Fedor wrote: > > You're right. I obviously don't understand what's going on here (that's > > a Schwartzian transform, right?) because I thought it was returning a > > one-dimensional array. > > No, it's a simple sort comparison function. For your edification, here's a Schwartzian transform: You have a list of numbers, and you want to sort in order of their frobitude. Frobitude is calculated by the frobitude() routine, and is very expensive to calculate. This would work: my @sorted = sort { frobitude($a) <=> $frobitude($b) } @numbers; but it would call frobitude on each comparison, which is going to increase quite a lot as the size of @numbers increases. Instead, you can make a new thing to sort by keeping track of each number's frobitude. my @numbers_with_frobs = map { [ $_, frobitude($_) ] } @numbers; Now you have a list of arrayrefs; each araryref is a pair: number and its frobitude. You can sort that like this: my @sorted_n_with_f = sort { $a->[1] <=> $b->[1] } @numbers_with_frobs; And then you can get back to just numbers like this: my @sorted = map { $_->[0] } @sorted_n_with_f; This is often done in one step: my @sorted = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, frobitude($_) ] } @numbers; And that ("map-sort-map") is the Schwartzian transform. -- rjbs -------------- 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/abe-pm/attachments/20060726/ce76640d/attachment.bin From waltman at pobox.com Thu Jul 27 11:37:12 2006 From: waltman at pobox.com (Walt Mankowski) Date: Thu, 27 Jul 2006 14:37:12 -0400 Subject: [ABE.pm] sorting an AoA In-Reply-To: <20060726223546.GA12339@zodiac.codesimply.com> References: <20060726192459.GA24245@neptune.faber.nom> <20060726195642.GB13133@mawode.com> <20060726200632.GA24460@neptune.faber.nom> <20060726202040.GD13133@mawode.com> <20060726223546.GA12339@zodiac.codesimply.com> Message-ID: <20060727183712.GB1047@mawode.com> On Wed, Jul 26, 2006 at 06:35:46PM -0400, Ricardo SIGNES wrote: > * Walt Mankowski [2006-07-26T16:20:40] > > On Wed, Jul 26, 2006 at 04:06:32PM -0400, Faber J. Fedor wrote: > > > You're right. I obviously don't understand what's going on here (that's > > > a Schwartzian transform, right?) because I thought it was returning a > > > one-dimensional array. > > > > No, it's a simple sort comparison function. > > For your edification, here's a Schwartzian transform: > > You have a list of numbers, and you want to sort in order of their frobitude. > Frobitude is calculated by the frobitude() routine, and is very expensive to > calculate. > > This would work: > > my @sorted = sort { frobitude($a) <=> $frobitude($b) } @numbers; > > but it would call frobitude on each comparison, which is going to increase > quite a lot as the size of @numbers increases. Instead, you can make a new > thing to sort by keeping track of each number's frobitude. > > my @numbers_with_frobs = map { [ $_, frobitude($_) ] } @numbers; > > Now you have a list of arrayrefs; each araryref is a pair: number and its > frobitude. > > You can sort that like this: > > my @sorted_n_with_f = sort { $a->[1] <=> $b->[1] } @numbers_with_frobs; > > And then you can get back to just numbers like this: > > my @sorted = map { $_->[0] } @sorted_n_with_f; > > This is often done in one step: > > my @sorted = map { $_->[0] } > sort { $a->[1] <=> $b->[1] } > map { [ $_, frobitude($_) ] } > @numbers; > > And that ("map-sort-map") is the Schwartzian transform. Right. I should have added something like that in my post. Thanks. The key difference in that in Faber's example, we're sorting by a field that's already in the list, while in Ricardo's we're sorting by a calculated value. The Schwartzian Transform is really just a clever way caching the calculated values so they don't need to be recalculated for each comparison. Walt -------------- 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/abe-pm/attachments/20060727/807403f0/attachment-0001.bin From rGeoffrey at PlatypiVentures.com Thu Jul 27 22:34:03 2006 From: rGeoffrey at PlatypiVentures.com (R. Geoffrey Avery) Date: Fri, 28 Jul 2006 01:34:03 -0400 Subject: [ABE.pm] YAPC::Philadelphia 2007 Message-ID: <6.2.3.4.2.20060728011310.07717078@mail.PlatypiVentures.com> Thursday Walt, Dieter, and I visited the campus or Rutgers-Camden and we think the facilities will work. We will have to conference rooms in two different buildings, but that worked in Boca Raton so it should work for us. Ricardo has offered the use of the ABE.pm wiki so we can get the proposal together. You can find it here... http://abe.pm.org/wiki/index.cgi?YAPCPhiladelphia I will contact the university on Friday to get the rest of the numbers. Assuming no sponsorship and 60 free spots for speakers and organizers I expect we will break even at about 350 people. So members of phl.pm and abe.pm, please take a look at the proposal and make any changes you think will help and add your name to the organizer list if you feel so moved. - Geoff From tfreedman at iqep.com Fri Jul 28 06:27:51 2006 From: tfreedman at iqep.com (Tom Freedman) Date: Fri, 28 Jul 2006 09:27:51 -0400 Subject: [ABE.pm] Perl Best Practices? Message-ID: <488856AE33F91F4A881EA12F52DDC8C62E618A@inbtmail1.group.iqep.com> Has anyone read (or skimmed, or perused) Damian Conway's latest book, "Perl Best Practices"? Being fairly new to Perl, it's a topic that interests me, and I've heard good things about his OO-Perl book. Just wondering if anyone has some opinions on his latest offering. Tom Freedman From rjbs-perl-abe at lists.manxome.org Fri Jul 28 07:01:48 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Fri, 28 Jul 2006 10:01:48 -0400 Subject: [ABE.pm] Perl Best Practices? In-Reply-To: <488856AE33F91F4A881EA12F52DDC8C62E618A@inbtmail1.group.iqep.com> References: <488856AE33F91F4A881EA12F52DDC8C62E618A@inbtmail1.group.iqep.com> Message-ID: <20060728140147.GA28481@zodiac.codesimply.com> * Tom Freedman [2006-07-28T09:27:51] > Has anyone read (or skimmed, or perused) Damian Conway's latest book, > "Perl Best Practices"? Being fairly new to Perl, it's a topic that > interests me, and I've heard good things about his OO-Perl book. Just > wondering if anyone has some opinions on his latest offering. I did. I have a copy, if you'd like to borrow it. He says some obvious, uninteresting things, like "pick and stick to a code layout style." Of course, that is not obvious to some people, and having it in a well-liked book is probably useful for convincing silly bosses. He says some useful, more interesting things, like "use table-layout ternaries for multiple disjunction." Like: my $x = $a > 10 ? 'foo' : $a > 5 ? 'bar' : $a > 2 ? 'baz' : 'XXX'; He also says some crazy-ass stuff like "use three-part version numbers" and "use inside-out objects" and "put all POD in __END__." (There may be some correlation between "stuff rjbs disagrees with" and "crazy-ass stuff." This is surely coincidental. Our style guide for coding at IC Group is "PBP, with the following 10 exceptions." -- rjbs -------------- 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/abe-pm/attachments/20060728/0b9029f7/attachment.bin From faber at linuxnj.com Mon Jul 31 09:08:41 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 31 Jul 2006 12:08:41 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060726183934.GA24135@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> Message-ID: <20060731160841.GA26773@neptune.faber.nom> On 26/07/06 14:39 -0400, Faber J. Fedor wrote: > On 26/07/06 14:04 -0400, Ricardo SIGNES wrote: > > * "Faber J. Fedor" [2006-07-26T13:26:47] > > > I now want to redirect the output to a file, so I thought simply > > > doing this would work: > > > > > > open(OUTFILE, "> $myfile"); > > > my $report_destination = \*OUTFILE; > > > printHeader(); > > > > You are using antique file handles. > > "Antique"?! I never got the memo! > > > The all-caps, all-global filehandles will come back to haunt you some day. > > And today was that day; when I switch to the new (?) style, T::T worked > perfectly. And today, it doesn't. :-? I'm back to the same problem of the template being written to file, but the variables are written to STDOUT after the program exits. WTF?! -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Mon Jul 31 09:30:07 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 31 Jul 2006 12:30:07 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731160841.GA26773@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> Message-ID: <20060731163007.GA18179@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-31T12:08:41] > > And today was that day; when I switch to the new (?) style, T::T worked > > perfectly. > > And today, it doesn't. :-? I'm back to the same problem of the template > being written to file, but the variables are written to STDOUT after the > program exits. Bogg. :( Can you reduce this to a simple, reproduceable test that you can send us in its entirety? -- rjbs -------------- 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/abe-pm/attachments/20060731/192a3794/attachment.bin From faber at linuxnj.com Mon Jul 31 09:37:47 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 31 Jul 2006 12:37:47 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731160841.GA26773@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> Message-ID: <20060731163747.GA26938@neptune.faber.nom> Can someone run the attached files and tell me what you see? If you have Text::Template installed, you can run this in any directory with 'perl test.pl'. IIUC, you should see on STDOUT the following: [your prompt at here]$ perl test.pl outfile = test.out report_destination = GLOB(0x804cbdc) and an output file called test.out that contains this output: Date is 20060101 0 1 2 3 4 5 6 7 8 9 10 What I'm seeing is all of the above on STDOUT and two blanks lines in test.out. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com -------------- next part -------------- { print "Date is $date\n" ; my $i; for ($i = 0; $i<= 10; $i++) {print "$i\n"}; } -------------- next part -------------- A non-text attachment was scrubbed... Name: test.pl Type: application/x-perl Size: 608 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060731/a67b223c/attachment.bin From rjbs-perl-abe at lists.manxome.org Mon Jul 31 09:58:39 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 31 Jul 2006 12:58:39 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731163747.GA26938@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> Message-ID: <20060731165839.GA13744@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-31T12:37:47] > What I'm seeing is all of the above on STDOUT and two blanks lines in > test.out. That's because... > { > print "Date is $date\n" ; > my $i; > for ($i = 0; $i<= 10; $i++) {print "$i\n"}; > } You do not print in a Text::Template! In the documentation, you will find this: http://search.cpan.org/~mjd/Text-Template/lib/Text/Template.pm#The_%24OUT_variable If you want to build up output, you use $OUT and append to it. Alternately, you just have blocks that return something. You almost certainly want to use $OUT, though, in this case. I wonder how you ever had it working, using print... -- rjbs -------------- 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/abe-pm/attachments/20060731/be34b4bf/attachment.bin From faber at linuxnj.com Mon Jul 31 11:13:47 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 31 Jul 2006 14:13:47 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731165839.GA13744@zodiac.codesimply.com> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> <20060731165839.GA13744@zodiac.codesimply.com> Message-ID: <20060731181347.GA27096@neptune.faber.nom> On 31/07/06 12:58 -0400, Ricardo SIGNES wrote: > * "Faber J. Fedor" [2006-07-31T12:37:47] > > What I'm seeing is all of the above on STDOUT and two blanks lines in > > test.out. > > That's because... > > > { > > print "Date is $date\n" ; > > my $i; > > for ($i = 0; $i<= 10; $i++) {print "$i\n"}; > > } > > You do not print in a Text::Template! In the documentation, you will find > this: That explains half of the problems; the other half I've got working via syntax changes. > If you want to build up output, you use $OUT and append to it. > > Alternately, you just have blocks that return something. You almost certainly > want to use $OUT, though, in this case. So any loop I use (and I use ALOT of loops!) have to use $OUT, right? > I wonder how you ever had it working, using print... At first, my $report_destination was \*STDOUT and I was redirecting that to a file. It's understandable why that worked. I changed $report_destination to a glob style file handle and that didn't work. You suggested a new style fh and that did work. That's why I moved it into production. The first time it ran in production, it failed. I guess I have to go rewrite all of my templates now... -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From faber at linuxnj.com Mon Jul 31 11:24:41 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 31 Jul 2006 14:24:41 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731165839.GA13744@zodiac.codesimply.com> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> <20060731165839.GA13744@zodiac.codesimply.com> Message-ID: <20060731182441.GA27174@neptune.faber.nom> On 31/07/06 12:58 -0400, Ricardo SIGNES wrote: > * "Faber J. Fedor" [2006-07-31T12:37:47] > > What I'm seeing is all of the above on STDOUT and two blanks lines in > > test.out. > > That's because... > > > { > > print "Date is $date\n" ; > > my $i; > > for ($i = 0; $i<= 10; $i++) {print "$i\n"}; > > } > > You do not print in a Text::Template! Which raises the question: how do you format variables for output without using a printf()? Much of what I'm doing in my loops is stuff like this: printf(" %5.2f", $port->bucketsize($i) ); and foreach my $company (@{$companyArray}){ printf(" %10s%5.2f\n", $company->[0], $company->[1]); } How do I get $port->bucketsize($i) to be a %5.2f (example 1) without using printf? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From faber at linuxnj.com Mon Jul 31 11:29:34 2006 From: faber at linuxnj.com (Faber Fedor) Date: Mon, 31 Jul 2006 14:29:34 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731182441.GA27174@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> <20060731165839.GA13744@zodiac.codesimply.com> <20060731182441.GA27174@neptune.faber.nom> Message-ID: <300ccfa50607311129s2bb3167cme0e4592e1fa82493@mail.gmail.com> > > How do I get $port->bucketsize($i) to be a %5.2f (example 1) without > using printf? Answer: you use sprintf(). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20060731/0cb3230c/attachment.html From rjbs-perl-abe at lists.manxome.org Mon Jul 31 12:19:51 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 31 Jul 2006 15:19:51 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731182441.GA27174@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> <20060731165839.GA13744@zodiac.codesimply.com> <20060731182441.GA27174@neptune.faber.nom> Message-ID: <20060731191951.GA7709@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-31T14:24:41] > On 31/07/06 12:58 -0400, Ricardo SIGNES wrote: > > You do not print in a Text::Template! > > Which raises the question: how do you format variables for output > without using a printf()? sprintf. It works like printf but returns a string instead of sending it to the selected fh. -- rjbs -------------- 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/abe-pm/attachments/20060731/2ddecb54/attachment.bin From rjbs-perl-abe at lists.manxome.org Mon Jul 31 12:24:01 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 31 Jul 2006 15:24:01 -0400 Subject: [ABE.pm] Text::Template Q In-Reply-To: <20060731181347.GA27096@neptune.faber.nom> References: <20060726172647.GC23651@neptune.faber.nom> <20060726180448.GA10689@zodiac.codesimply.com> <20060726183934.GA24135@neptune.faber.nom> <20060731160841.GA26773@neptune.faber.nom> <20060731163747.GA26938@neptune.faber.nom> <20060731165839.GA13744@zodiac.codesimply.com> <20060731181347.GA27096@neptune.faber.nom> Message-ID: <20060731192401.GB7709@zodiac.codesimply.com> * "Faber J. Fedor" [2006-07-31T14:13:47] > > Alternately, you just have blocks that return something. You almost > > certainly want to use $OUT, though, in this case. > > So any loop I use (and I use ALOT of loops!) have to use $OUT, right? You should really read the excellent Text::Template documentation. It provides multiple examples. Like: Here is a list of the things I have got for you since 1907: { my $blist = ''; foreach $i (@items) { $blist .= qq{ * $i\n}; } $blist; } That will do what you want, for creating data from a loop and outputting it. That can also be done with $OUT. You could also continue printing, but first "select" the handle to which you want to output. I do not advise doing this, because you will almost certainly bite yourself. > I guess I have to go rewrite all of my templates now... s/print /$OUT .=/g; -- rjbs -------------- 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/abe-pm/attachments/20060731/0a0a83c0/attachment.bin