From rjbs-perl-abe at lists.manxome.org Thu Mar 4 06:40:07 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting Message-ID: <20040304074007.E12317@manxome.org> Good morning! A couple of things: So, the next meeting should be March 9th, by my reckoning. Do we have a space arranged yet? I'll be putting together a presentation on testing in Perl and test-driven development. If anyone has special requests, let me know. :) I thought I had another thing to say, but it's escaped me, so I'll save it for later, I guess. And, finally, here's just a sample of a touching email sent to our list this morning: As you read this, I don't want you to feel sorry for me, because, I believe everyone will die someday. My name is BATES ALAN a merchant in Dubai, in the U.A.E.I have been diagnosed with Esophageal cancer. It has defiled all forms of medical treatment, and right now I have only about a few months to live, according to medical experts. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040304/8b26ab6b/attachment.bin From phil at five-lawrences.com Thu Mar 4 08:41:09 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <20040304074007.E12317@manxome.org> References: <20040304074007.E12317@manxome.org> Message-ID: <40474005.1010103@five-lawrences.com> Jim, Can I help you arrange the meeting space? If things don't work out for the Technology Learning Classroom (or whatever) I can talk with the registrar about classroom use. Steve, can you or Carol recommend any small, yet hi-tech classrooms? maybe one of the new Macginnes ones? Jim, be sure to find out if the plasma screen is suitable for our purposes, i.e. can we hook our laptops up to it for presentations and does it look great. Maybe it has some funky dimensions and is only good for NTSC? I can tour with you if you set up an appointment. Phil From rjbs-perl-abe at lists.manxome.org Thu Mar 4 08:45:56 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <20040304074007.E12317@manxome.org> References: <20040304074007.E12317@manxome.org> Message-ID: <20040304094556.G12317@manxome.org> * Ricardo SIGNES [2004-03-04T07:40:07] > Good morning! A couple of things: My reckoning was wrong. Next Monday is the 8th. We meet on the second Monday. So, the 8th. :) -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040304/2b83b874/attachment.bin From phil at five-lawrences.com Thu Mar 4 10:57:23 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] DBI -> PL/SQL question Message-ID: <40475FF3.1080807@five-lawrences.com> [copy also sent to philly.pm] This question is about bind variables and performance. With Perl/DBI, I use bind variables in my SQL statements. Then I prepare them only once, and execute (with varying bind values) iteratively. This is efficient. Cool. So now I'm in PL/SQL. But I don't see that PREPARE is available. All examples are like this: FUNCTION ... ... OPEN c_cursor( v_val1, v_val2 ); FETCH c_cursor INTO v_result; CLOSE c_cursor; RETURN v_result; END... or this: FUNCTION ... ... EXECUTE IMMEDIATE 'SELECT foo INTO v_result FROM some_table WHERE bar1 = :1 AND bar2 = :2' USING v_val1, v_val2; RETURN v_result; END... or this: FUNCTION ... ... TYPE cv_type IS REF CURSOR; dyncur cv_type; ... OPEN dyncur FOR f_gimme_a_str_of_sql('bar1','bar2') USING v_val1, v_val2; FETCH dyncur INTO v_result RETURN v_result; END... etc., etc., there are lots of variations. So my question is this: How do I ensure that Oracle will be preparing my SQL statements *only once*? Or do I not need to worry about this at all? Or do I need to be careful not to CLOSE my cursors, and then Oracle will do the right thing? Also, would a package level cursor be relavent to this question? (I am puttign enerything into a package.) Perhaps somethign like this? PACKAGE BODY... CURSOR c_cursor ( in_bar1 VARCHAR2, in_bar2 VARCHAR2 ) IS SELECT foo FROM some_table WHERE bar1 = in_bar1 AND bar2 = in_bar2; FUNCTION f_get_result ( in_bar1 VARCHAR2, in_bar2 VARCHAR2 ) AS v_result VARCHAR2(30); BEGIN OPEN c_cursor( in_bar1, in_bar2 ); FETCH c_cursor INTO v_result; -- DON'T CLOSE CURSOR (?) -- (so Oracle doesn't have to re-prepare next -- time f_get_result is called???) RETURN v_result; END f_get_result; Or does all that fanciness gain me nothing over just using native dynamic SQL everytime f_get_result is called? Thanks, prl From jce0 at Lehigh.EDU Fri Mar 5 09:41:58 2004 From: jce0 at Lehigh.EDU (Jim Eshleman) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <40474005.1010103@five-lawrences.com> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> Message-ID: <40489FC6.80005@Lehigh.EDU> The room w/cool plasma display is unavailable due to renovations (starting this Monday, go figure) so I've reserved Room 292, E.W. Fairchild-Martindale Library & Computing Center Building #8B (aka The Computing Center) at Lehigh University from 1800-2000 on Monday, 08 Mar 2004. I didn't realize we were starting at 1900, but staying past 2000 if needed shouldn't be a problem. Jim From phil at five-lawrences.com Fri Mar 5 09:48:37 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <40489FC6.80005@Lehigh.EDU> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> Message-ID: <4048A155.5000908@five-lawrences.com> Jim Eshleman wrote: > Room 292, E.W. Fairchild-Martindale Library & Computing Center Building #8B > (aka The Computing Center) at Lehigh University This is *right* across from the newest parking garage on campus. I'll try to get a map up to the Wiki later... for now, if anyone knows a landmark at the LU campus I can give directions from there. prl From faber at linuxnj.com Fri Mar 5 10:29:53 2004 From: faber at linuxnj.com (Faber Fedor) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <40489FC6.80005@Lehigh.EDU> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> Message-ID: <20040305162953.GA7051@uranus.faber.nom> On Fri, Mar 05, 2004 at 10:41:58AM -0500, Jim Eshleman wrote: > The room w/cool plasma display is unavailable due to renovations > (starting this Monday, go figure) so I've reserved Room 292, E.W. > Fairchild-Martindale Library & Computing Center Building #8B (aka The > Computing Center) at Lehigh University from 1800-2000 on Monday, 08 Mar > 2004. I didn't realize we were starting at 1900, but staying past 2000 > if needed shouldn't be a problem. For us out-of-staters, can you give directions or a street address? -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From jce0 at Lehigh.EDU Fri Mar 5 11:04:11 2004 From: jce0 at Lehigh.EDU (Jim Eshleman) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <20040305162953.GA7051@uranus.faber.nom> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> <20040305162953.GA7051@uranus.faber.nom> Message-ID: <4048B30B.6080002@Lehigh.EDU> > For us out-of-staters, can you give directions or a street address? Hey, I just work here, in the basement, in a cube :-) But I'll try. From NJ, 78W to the Bethlehem/Hellertown exit, right onto 412 toward Bethlehem. After you pass the remains of Bethlehem Steel there's a light where 412 branches off to the right and becomes 3rd Street, continuing straight becomes 4th Street. If you can get to the intersection of 4th and New you're probably close enough to weeze our wireless. Turn left onto New street, up a block or three to a three-way stop ("tee") and turn right onto Morton. Left at the stop sign onto Vine, next left onto Asa Drive and left into the parking gargage. Maps here may help: http://www3.lehigh.edu/about/lumapsdirections.asp Phil/Steve, would you double check my directions? Jim From sol0 at lehigh.edu Fri Mar 5 11:25:11 2004 From: sol0 at lehigh.edu (Steve Lidie) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] next meeting In-Reply-To: <4048B30B.6080002@Lehigh.EDU> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> <20040305162953.GA7051@uranus.faber.nom> <4048B30B.6080002@Lehigh.EDU> Message-ID: <0E759508-6ECA-11D8-9188-000A95BA93C6@lehigh.edu> On Mar 5, 2004, at 12:04 PM, Jim Eshleman wrote: >> For us out-of-staters, can you give directions or a street address? > > Hey, I just work here, in the basement, in a cube :-) But I'll try. > > From NJ, 78W to the Bethlehem/Hellertown exit, right onto 412 toward > Bethlehem. After you pass the remains of Bethlehem Steel there's a > light where 412 branches off to the right and becomes 3rd Street, > continuing straight becomes 4th Street. If you can get to the > intersection of 4th and New you're probably close enough to weeze our > wireless. Turn left onto New street, up a block or three to a > three-way stop ("tee") and turn right onto Morton. Left at the stop > sign onto Vine, next left onto Asa Drive and left into the parking > gargage. > > Maps here may help: > > http://www3.lehigh.edu/about/lumapsdirections.asp > > Phil/Steve, would you double check my directions? The directions from the web will be different - they'll take you the scenic way and not through Beth Steel the row homes//// but Jim's way is more direct ... looking for EWFM Library and Computing Center..... > > Jim > > _______________________________________________ > ABE-pm mailing list > ABE-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/abe-pm From faber at linuxnj.com Mon Mar 8 10:21:36 2004 From: faber at linuxnj.com (Faber Fedor) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Tonight's meeting (directions) In-Reply-To: <4048B30B.6080002@Lehigh.EDU> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> <20040305162953.GA7051@uranus.faber.nom> <4048B30B.6080002@Lehigh.EDU> Message-ID: <20040308162136.GA29618@uranus.faber.nom> Once I'm in the parking garage, where do I go? And will anyone have a cellphone on them in case I get lost? On Fri, Mar 05, 2004 at 12:04:11PM -0500, Jim Eshleman wrote: > >For us out-of-staters, can you give directions or a street address? > > Hey, I just work here, in the basement, in a cube :-) But I'll try. > > From NJ, 78W to the Bethlehem/Hellertown exit, right onto 412 toward > Bethlehem. After you pass the remains of Bethlehem Steel there's a > light where 412 branches off to the right and becomes 3rd Street, > continuing straight becomes 4th Street. If you can get to the > intersection of 4th and New you're probably close enough to weeze our > wireless. Turn left onto New street, up a block or three to a three-way > stop ("tee") and turn right onto Morton. Left at the stop sign onto > Vine, next left onto Asa Drive and left into the parking gargage. > > Maps here may help: > > http://www3.lehigh.edu/about/lumapsdirections.asp > > Phil/Steve, would you double check my directions? > > Jim > > -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From phil at five-lawrences.com Mon Mar 8 11:11:51 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Tonight's meeting (directions) In-Reply-To: <20040308162136.GA29618@uranus.faber.nom> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> <20040305162953.GA7051@uranus.faber.nom> <4048B30B.6080002@Lehigh.EDU> <20040308162136.GA29618@uranus.faber.nom> Message-ID: <404CA957.8010707@five-lawrences.com> Faber Fedor wrote: >Once I'm in the parking garage, where do I go? > The computing center is right across the street. It is connected to the (modern looking) library via a LARGE breezeway. If you stand in the breezweay and look towards Bethlehem, you can see the river and the bridge, etc. Anyway, the Computing center is on the West side of the breezeway, and the librry is on the East side. Enter the computing center and descend 1 level. (right, Jim?) I don;t remember the meeting rroom number offhand. Jim? Gotta run, see you at 7:00. prl From jce0 at Lehigh.EDU Mon Mar 8 12:09:59 2004 From: jce0 at Lehigh.EDU (Jim Eshleman) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Tonight's meeting (directions) In-Reply-To: <20040308162136.GA29618@uranus.faber.nom> References: <20040304074007.E12317@manxome.org> <40474005.1010103@five-lawrences.com> <40489FC6.80005@Lehigh.EDU> <20040305162953.GA7051@uranus.faber.nom> <4048B30B.6080002@Lehigh.EDU> <20040308162136.GA29618@uranus.faber.nom> Message-ID: <404CB6F7.1080907@Lehigh.EDU> > Once I'm in the parking garage, where do I go? > > And will anyone have a cellphone on them in case I get lost? We'll be in room 292, which is down one flight from ground level. The phone in the classroom is 610-758-2391. Or just stand around and look lost, we'll come looking for you eventually :-) Jim From dann at thelinuxlink.net Mon Mar 8 21:47:31 2004 From: dann at thelinuxlink.net (dann) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Thanks Message-ID: <20040308224731.5e19b332@inferno.thelinuxlink.net> Thanks for the great meeting, I learned a lot. Ricardo, you presentation has sparked some serious thinking on my part. While my PERL knowledge is quite limited, you have rekindled my desire to pick up where I left off a few months back. -- Dann S. Washko Lehigh Valley Linux Users Group http://www.thelinuxlink.net get slack (www.slackware.com) and get happy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040308/f369124e/attachment.bin From jce0 at Lehigh.EDU Mon Mar 8 22:12:25 2004 From: jce0 at Lehigh.EDU (Jim Eshleman) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Thanks In-Reply-To: <20040308224731.5e19b332@inferno.thelinuxlink.net> References: <20040308224731.5e19b332@inferno.thelinuxlink.net> Message-ID: <404D4429.7050305@Lehigh.EDU> > Thanks for the great meeting, I learned a lot. Ricardo, you presentation > has sparked some serious thinking on my part. While my PERL knowledge is > quite limited, you have rekindled my desire to pick up where I left off a > few months back. I agree, great presentation. I'm convinced I should actually start testing my code :-) Thanks Ric! Jim From faber at linuxnj.com Mon Mar 8 22:30:01 2004 From: faber at linuxnj.com (Faber Fedor) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] Thanks In-Reply-To: <404D4429.7050305@Lehigh.EDU> References: <20040308224731.5e19b332@inferno.thelinuxlink.net> <404D4429.7050305@Lehigh.EDU> Message-ID: <20040309043001.GD1525@uranus.faber.nom> On Mon, Mar 08, 2004 at 11:12:25PM -0500, Jim Eshleman wrote: > >Thanks for the great meeting, I learned a lot. Ricardo, you presentation > >has sparked some serious thinking on my part. While my PERL knowledge is > >quite limited, you have rekindled my desire to pick up where I left off a > >few months back. > > I agree, great presentation. Hear! Hear! I especialy liked the info about the "extra" module like "www mechanize" and the like. You do know your stuff, laddie! :-) -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Tue Mar 9 07:12:16 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:48 2004 Subject: [ABE.pm] misc news Message-ID: <20040309081216.C22875@manxome.org> I'm glad to hear that I may have convinced a few people to do more testing. It'll help me feel better about having too few tests on my own code. Here's the "two worst variable names" entry I mentioned: http://use.perl.org/~petdance/journal/17788 Addison-Wesley is giving away copies of their forthcoming "Perl Medic: Maintaining Inherited Code" to Perl Mongers groups, and I requested a copy. I don't know, yet, whether I was in the first 75. (I think that book name is right.) So... anyone up for volunteering for next month's meeting? -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040309/8fb2064d/attachment.bin From phil at five-lawrences.com Tue Mar 9 07:30:06 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting Message-ID: <404DC6DE.70404@five-lawrences.com> Next meeting: Perhaps we could each come prepared with examples of ~/bin tools we've written. 10 minutes or so for each of us. Then we could write tests (using screen -x) for a reimplimentation or synthesis of what was presented. It would be cool for ABE.pm to release a Tilde::Bin module. Hmmm. That is a *wicked* cool module name now that I think of it! :-) If we design it well, others might like to throw in their bite-sized contributions. Not that it would be finished that night, but as Ricardo said, with the tests already written we can source out the implementation to our lackeys... well... anyway, we can split up the work. prl From sol0 at lehigh.edu Tue Mar 9 08:05:29 2004 From: sol0 at lehigh.edu (Steve Lidie) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: <404DC6DE.70404@five-lawrences.com> References: <404DC6DE.70404@five-lawrences.com> Message-ID: On Mar 9, 2004, at 8:30 AM, Phil R Lawrence wrote: > > Next meeting: > > Perhaps we could each come prepared with examples of ~/bin tools we've > written. 10 minutes or so for each of us. > > Then we could write tests (using screen -x) for a reimplimentation or > synthesis of what was presented. It would be cool for ABE.pm to > release a Tilde::Bin module. Hmmm. That is a *wicked* cool module > name now that I think of it! :-) If we design it well, others might > like to throw in their bite-sized contributions. > > Not that it would be finished that night, but as Ricardo said, with > the tests already written we can source out the implementation to our > lackeys... well... anyway, we can split up the work. > Of course, what you just said is meaningless for those who failed to attend. Whenever feasible it would be nice to have the presentation materials online ... any chance? From linc at thelinuxlink.net Tue Mar 9 08:01:08 2004 From: linc at thelinuxlink.net (Linc Fessenden) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: Message-ID: On Tue, 9 Mar 2004, Steve Lidie wrote: > > On Mar 9, 2004, at 8:30 AM, Phil R Lawrence wrote: > > > > > Next meeting: > > > > Perhaps we could each come prepared with examples of ~/bin tools we've > > written. 10 minutes or so for each of us. > > > > Then we could write tests (using screen -x) for a reimplimentation or > > synthesis of what was presented. It would be cool for ABE.pm to > > release a Tilde::Bin module. Hmmm. That is a *wicked* cool module > > name now that I think of it! :-) If we design it well, others might > > like to throw in their bite-sized contributions. > > > > Not that it would be finished that night, but as Ricardo said, with > > the tests already written we can source out the implementation to our > > lackeys... well... anyway, we can split up the work. > > > > Of course, what you just said is meaningless for those who failed to > attend. Whenever feasible it would be nice to have the presentation > materials online ... any chance? Ditto. I'd really like to sit in on these things, but I simply cannot do 3 nights away in one week with the PM, LUG, TechShow. -Linc Fessenden In the Beginning there was nothing, which exploded - Yeah right... From rjbs-perl-abe at lists.manxome.org Tue Mar 9 08:40:10 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: References: <404DC6DE.70404@five-lawrences.com> Message-ID: <20040309094010.E22875@manxome.org> * Steve Lidie [2004-03-09T09:05:29] > > Of course, what you just said is meaningless for those who failed to > attend. Whenever feasible it would be nice to have the presentation > materials online ... any chance? > Yes. I'll see what the simplest export I can generate is. Probably PDF. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040309/71fd97de/attachment.bin From phil at five-lawrences.com Tue Mar 9 08:46:53 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: <20040309094010.E22875@manxome.org> References: <404DC6DE.70404@five-lawrences.com> <20040309094010.E22875@manxome.org> Message-ID: <404DD8DD.80901@five-lawrences.com> Ricardo SIGNES wrote: > Yes. I'll see what the simplest export I can generate is. Probably > PDF. PDF? Nah, how about plain text? You used [i forget the name] to generate an outline, and exported to keynote, so why not just export to outline-format text? Encapsulation in PDF hides the content. Phil From rjbs-perl-abe at lists.manxome.org Tue Mar 9 09:11:19 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: <404DD8DD.80901@five-lawrences.com> References: <404DC6DE.70404@five-lawrences.com> <20040309094010.E22875@manxome.org> <404DD8DD.80901@five-lawrences.com> Message-ID: <20040309101119.F22875@manxome.org> * Phil R Lawrence [2004-03-09T09:46:53] > Ricardo SIGNES wrote: > > >Yes. I'll see what the simplest export I can generate is. Probably > >PDF. > > PDF? Nah, how about plain text? You used [i forget the name] to > generate an outline, and exported to keynote, so why not just export to > outline-format text? Encapsulation in PDF hides the content. I can do that, but I modified the slides once I got them in Keynote, so there will be missing and altered data. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040309/607a8424/attachment.bin From Mordechai_Pniel at contractor.amat.com Thu Mar 11 11:49:59 2004 From: Mordechai_Pniel at contractor.amat.com (Mordechai_Pniel@contractor.amat.com) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file Message-ID: Hi, I need a perl script : to append a line at the bottom of every file *.sql. This line should contain the string "EXIT". Only if this line doesn't exist as the bottom line of the files. Does anyone have any sample? Thanks Mordechai -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20040311/4c562451/attachment.htm From rjbs-perl-abe at lists.manxome.org Thu Mar 11 12:05:37 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file In-Reply-To: References: Message-ID: <20040311130537.A19119@manxome.org> * Mordechai_Pniel@contractor.amat.com [2004-03-11T12:49:59] > I need a perl script : to append a line at the bottom of every file *.sql. > This line should contain the string "EXIT". > Only if this line doesn't exist as the bottom line of the files. > Does anyone have any sample? Please join the list if you want to send further mails to it. Are you from the area? -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040311/914d4611/attachment.bin From rjbs-perl-abe at lists.manxome.org Thu Mar 11 13:35:02 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Perl Medic Message-ID: <20040311143502.D19119@manxome.org> So, I received our review copy of Perl Medic! "Perl Medic: Trnasforming Legacy Code" by Peter J. Scott Who wants to read/review it? I'll be doing so, at least. If anyone is interested in reviewing other books, I can look at getting copies. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040311/a87bb223/attachment.bin From phil at five-lawrences.com Thu Mar 11 13:52:39 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file In-Reply-To: <20040311130537.A19119@manxome.org> References: <20040311130537.A19119@manxome.org> Message-ID: <4050C387.4020709@five-lawrences.com> > * Mordechai_Pniel@contractor.amat.com [2004-03-11T12:49:59] > >>I need a perl script : to append a line at the bottom of every file *.sql. >>This line should contain the string "EXIT". >>Only if this line doesn't exist as the bottom line of the files. >>Does anyone have any sample? I tried using eof() in a one-liner (i.e with -pi -e), but did strange things. Then I saw in the Camel that eof "is not useful in an interactive context" (for reasons that are beyond me). So I guess you're stuck with boring temp files and such. prl From rjbs-perl-abe at lists.manxome.org Thu Mar 11 13:54:30 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file In-Reply-To: <4050C387.4020709@five-lawrences.com> References: <20040311130537.A19119@manxome.org> <4050C387.4020709@five-lawrences.com> Message-ID: <20040311145430.E19119@manxome.org> * Phil R Lawrence [2004-03-11T14:52:39] > > I tried using eof() in a one-liner (i.e with -pi -e), but did strange > things. Then I saw in the Camel that eof "is not useful in an > interactive context" (for reasons that are beyond me). > > So I guess you're stuck with boring temp files and such. Nah, you could Tie::File the file. Something like: push @file, "EXIT;" if $file[-1] ne "EXIT;"; -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040311/bd0af3a6/attachment.bin From rjbs-perl-abe at lists.manxome.org Thu Mar 11 18:45:34 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file In-Reply-To: References: <20040311145430.E19119@manxome.org> Message-ID: <20040311194534.G19119@manxome.org> * Pat Regan [2004-03-11T19:25:48] > > How about openning the files in append mode? > > open(FILE, '>>', 'filename.sql'); He doesn't want to do it for files that already have that at the end, so you'd have to do two passes. (One to read to find the files that matter, one to append.) Right? Tie::File might not be faster, but it'd be easier to read. I think. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040311/6a512a3b/attachment.bin From thehead at patshead.com Thu Mar 11 19:54:17 2004 From: thehead at patshead.com (Pat Regan) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] Append a line at bottom of file In-Reply-To: <20040311194534.G19119@manxome.org> Message-ID: EEP! I need to read more carefully... I'd definitely vote for Tie::File then :p. Sorry! Pat On Thu, 11 Mar 2004, Ricardo SIGNES wrote: > * Pat Regan [2004-03-11T19:25:48] > > > > How about openning the files in append mode? > > > > open(FILE, '>>', 'filename.sql'); > > He doesn't want to do it for files that already have that at the end, so > you'd have to do two passes. (One to read to find the files that > matter, one to append.) Right? > > Tie::File might not be faster, but it'd be easier to read. I think. > > -- > rjbs > From faber at linuxnj.com Sat Mar 13 20:09:12 2004 From: faber at linuxnj.com (Faber Fedor) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] What's wrong with this? Message-ID: <20040314020912.GB23173@uranus.faber.nom> How come the first $arg= line works and the second one doesn't? The file is called "untar" and the test is "untar fred.tgz". And yes, those are backticks around the echo statement. :-) #!/usr/bin/perl -w use strict ; die "Usage: ", $0 =~ /([^\/]+)$/, " \n" unless @ARGV == 1; my $arg = shift ; $arg =~ /.*tgz$/ and print 'print is good!\n' ; #works :-) $arg =~ /.*tgz$/ and `echo -e 'echo is good!\n'` ; #doesn't :-( -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Sat Mar 13 21:37:09 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] What's wrong with this? In-Reply-To: <20040314020912.GB23173@uranus.faber.nom> References: <20040314020912.GB23173@uranus.faber.nom> Message-ID: <20040313223709.F28747@manxome.org> * Faber Fedor [2004-03-13T21:09:12] > $arg =~ /.*tgz$/ and print 'print is good!\n' ; #works :-) > $arg =~ /.*tgz$/ and `echo -e 'echo is good!\n'` ; #doesn't :-( The second does work! It just doesn't do what you think it should. Backticks, aka the qx// operator, collect and return the output of the command. They /do not/ send it to STDOUT! To do that, you'd need one of these two things: print `echo Everybody likes echo!`; # print the collected output system 'echo Well, almost everyone.'; # let the output go to STDOUT Does that make sense? You can read about how qx// works in the "perlop" page. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040313/3e6dfeb9/attachment.bin From mikesd at frontiernet.net Sat Mar 20 20:40:39 2004 From: mikesd at frontiernet.net (Michael S. Dunsavage) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] malformed header from script. Bad header=Recipient names must be specif: Message-ID: <405D00A7.1060402@frontiernet.net> I wrote a cgi script to taek comments and mail them. malformed header from script. Bad header=Recipient names must be specif: the from page is http://msdcomputing.com/form.html the comments.pl script used to send the mail is: #!/usr/bin/perl require('/var/www/cgi-bin/cgi-libs/forms-lib.pl'); # Read input from the form. %input=&GetFormInput(); # Set the recipient, message, and sender. $recipient = $input{'address'} || "mikesd@msdcomputing.com"; $message = $input{'comments'}; $sender - $ENV{'HTTP_FROM'} || "mikesd@msdcomputing.com"; #Specify the mailer $MAILER = "/usr/lib/sendmail"; # Compose and send the mail message. open(MAIL, "|$MAILER -f$sender $recipient"); print MAIL "To: $recipient\n"; print MAIL "Subject: Comments on your web site\n"; print MAIL "\n"; print MAIL $message; close (MAIL); #-------------------------------------------- # Print a confirmation message. print "Content-type: text/html\n\n"; print <<"EndOfMessage"; Comments Sent

Your comments were sent

The following mail message was sent:
To: $recipient
Subject: Comments on your web site
$message
EndOfMessage Go ahead and go to http://www.msdcomputing.com/form.html and try to submit a comment. -- Michael S. Dunsavage From rjbs-perl-abe at lists.manxome.org Sat Mar 20 21:53:24 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] malformed header from script. Bad header=Recipient names must be specif: In-Reply-To: <405D00A7.1060402@frontiernet.net> References: <405D00A7.1060402@frontiernet.net> Message-ID: <20040320225324.E24424@manxome.org> * "Michael S. Dunsavage" [2004-03-20T21:40:39] > I wrote a cgi script to taek comments and mail them. > malformed header from script. Bad header=Recipient names must be specif: Considered just using Mail::Sendmail? -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040320/4f73951c/attachment.bin From rjbs-perl-abe at lists.manxome.org Sun Mar 21 07:23:31 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] malformed header from script. Bad header=Recipient names must be specif: In-Reply-To: <405D00A7.1060402@frontiernet.net> References: <405D00A7.1060402@frontiernet.net> Message-ID: <20040321082331.G24424@manxome.org> * "Michael S. Dunsavage" [2004-03-20T21:40:39] > require('/var/www/cgi-bin/cgi-libs/forms-lib.pl'); Also, what is this? Have you looked at CGI.pm? Using existing modules will save you time, because other people have already debugged the code and made it portable to other systems. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040321/bbb7a87d/attachment.bin From phil at five-lawrences.com Wed Mar 31 13:45:38 2004 From: phil at five-lawrences.com (Phil R Lawrence) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting Message-ID: <406B1FE2.1070804@five-lawrences.com> I've made some conceptual/UI progress on a ~/bin script which might make good use of test-driven development. But real work has not let me get much further. I'm excited for ABE.pm... I know if we show up each month good things will happen. It's true that members of Philly.pm have volunteered to come up and seed us with a few presentations (and that's very cool), but even when we're just 6 local guys that's pretty cool anyhow. 6 hackers with a free evening and nothing to do but code and hang out -- I like it. I'll help anyone with their pet Perl project, and I've got years worth of hacks I can break out to spark conversation. It's a bit late to ask Geoff to schedule his testing talk (Apache2) for this month, so I'll just keep looking for odd moments to work on my test-driven ~/bin toy. Why don't you guys do the same? We'll see who brings what. I think bug was recently working on an image manipulation tool. jce has sysadmin scripts falling out of his ears. *Lotsa* material here, folks. prl From geoff at modperlcookbook.org Wed Mar 31 13:48:32 2004 From: geoff at modperlcookbook.org (Geoffrey Young) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: <406B1FE2.1070804@five-lawrences.com> References: <406B1FE2.1070804@five-lawrences.com> Message-ID: <406B2090.1060209@modperlcookbook.org> > It's a bit late to ask Geoff to schedule his testing talk (Apache2) for > this month indeed :) but we can work on april if you like. tuesdays and thursdays are unfortunately out for me, but for the remaining days I'm fairly open. --Geoff From rjbs-perl-abe at lists.manxome.org Wed Mar 31 14:48:09 2004 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon Aug 2 21:22:49 2004 Subject: [ABE.pm] next meeting In-Reply-To: <406B1FE2.1070804@five-lawrences.com> References: <406B1FE2.1070804@five-lawrences.com> Message-ID: <20040331154809.C10507@manxome.org> * Phil R Lawrence [2004-03-31T14:45:38] > I've made some conceptual/UI progress on a ~/bin script which might make > good use of test-driven development. But real work has not let me get > much further. progress : yay! real work: boo! > I'm excited for ABE.pm... I know if we show up each month good things > will happen. It's true that members of Philly.pm have volunteered to > come up and seed us with a few presentations (and that's very cool), but > even when we're just 6 local guys that's pretty cool anyhow. Me, too. I also want to publicly state that I feel shitty for not having been posting things-of-interest to the list. I know it's not, like, required, but keeping up the chatter would be good. I even meant to confirm a topic for next time... mea culpa, etc. > It's a bit late to ask Geoff to schedule his testing talk (Apache2) for > this month, so I'll just keep looking for odd moments to work on my > test-driven ~/bin toy. Why don't you guys do the same? We'll see who > brings what. I think bug was recently working on an image manipulation > tool. jce has sysadmin scripts falling out of his ears. *Lotsa* > material here, folks. Yeah, my scripts are lame, but I think they have potential for generalization. I'll even bring the shell scripts that could be ported For Great Justice. Also, tomorrow I will make note of the silly toys I'm working on, like Games::Board, which I finally released on Monday. Thanks for picking up the ball, Phil. ;) -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040331/4c758763/attachment.bin