From eric at uc.org Thu Mar 3 13:22:42 2005 From: eric at uc.org (Eric - fishbot) Date: Thu Mar 3 13:23:09 2005 Subject: [kw-pm] Doctor Perl In-Reply-To: References: Message-ID: List::Util shuffle -is- Fisher-Yates: (I've also seen this called a 'Knuth Shuffle') sub shuffle (@) { my @a=\(@_); my $n; my $i=@_; map { $n = rand($i--); (${$a[$n]}, $a[$n] = $a[$i])[0]; } @_; } Except List::Util provides a XS implementation as well. And without the devious use of map seen above. As far as I can tell, folding the swap into a single statement is pure masochism. I'm tempted to benchmark, but that's just masochism being contagious. Another nice shuffle is this: @list = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, rand( @list ** 2 ) ] } @list; Which is more expensive, but I benchmarked it at 0.25 seconds for our 10816 list, so the expense likely isn't noticeable. (...though it is 8 times slower than the XS shuffle. If you were shuffling anything bigger than a scalar, though, I think that this would widen quickly.) I don't know much about XLST, I am afraid, though I notice that eXSLT implements a rand() somehow. You could look into that. I doubt that an all XLST solution would be very clean, but I get the impression that you are looking to do a proof-of-concept, and thus practicality is irrelevant. fishbot ---- original message : 2005-03-01 2:32am : lloyd carr ---- Dear Doctor Perl, I could use this- use List::Util shuffle; my @tiles = 0..10816; shuffle( @tiles ); or this- my @array = 0..10816; # fisher_yates_shuffle( \@array ) : # generate a random permutation of @array in place sub fisher_yates_shuffle { my $array = shift; my $i; for ($i = @$array; --$i; ) { my $j = int rand ($i+1); next if $i == $j; @$array[$i,$j] = @$array[$j,$i]; } } fisher_yates_shuffle( \@array ); # permutes @array in place but what I'd really like to know is there a way to do the Fisher-Yates shuffle in XSLT/eXSLT? -Lloyd dcarr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org _______________________________________________ kw-pm mailing list kw-pm@pm.org http://mail.pm.org/mailman/listinfo/kw-pm From dcarr at sdf.lonestar.org Thu Mar 3 14:10:53 2005 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Thu Mar 3 14:11:10 2005 Subject: [kw-pm] Doctor Perl In-Reply-To: References: Message-ID: > List::Util shuffle -is- Fisher-Yates: So shuffle is good. > I don't know much about XLST, I am afraid, though I notice that eXSLT > implements a rand() somehow. You could look into that. Already have the rand() I understand, what I don't understand is how to swap the nodes with the XSLT. > all XLST solution would be very clean, but I get the impression that you > are looking to do a proof-of-concept, and thus practicality is irrelevant. Proof-of-concept is exactly it and of course I have never let practicality get in the way of fun :-) I've subscribed to the XSLT and EXSLT lists. I'll lurk for a few days and then slip my question into the bit stream ;-) Thanks fishbot - Lloyd From eric at uc.org Thu Mar 3 15:56:02 2005 From: eric at uc.org (Eric - fishbot) Date: Thu Mar 3 15:56:10 2005 Subject: [kw-pm] Doctor Perl In-Reply-To: References: Message-ID: As one might predict, immediately after sending this: "As far as I can tell, folding the swap into a single statement is pure masochism. I'm tempted to benchmark, but that's just masochism being contagious." ...I immediately went and benchmarked the difference. http://kw.pm.org/wiki/index.cgi?ListShuffle Enjoy the masochism. If anyone has more insights, please feel free to post. fishbot ---- original message : 2005-03-03 10:10pm : lloyd carr ---- > List::Util shuffle -is- Fisher-Yates: So shuffle is good. > I don't know much about XLST, I am afraid, though I notice that eXSLT > implements a rand() somehow. You could look into that. Already have the rand() I understand, what I don't understand is how to swap the nodes with the XSLT. > all XLST solution would be very clean, but I get the impression that you > are looking to do a proof-of-concept, and thus practicality is irrelevant. Proof-of-concept is exactly it and of course I have never let practicality get in the way of fun :-) I've subscribed to the XSLT and EXSLT lists. I'll lurk for a few days and then slip my question into the bit stream ;-) Thanks fishbot - Lloyd From da at coder.com Fri Mar 4 07:13:56 2005 From: da at coder.com (Daniel R. Allen) Date: Fri Mar 4 07:23:58 2005 Subject: [kw-pm] exslt In-Reply-To: Message-ID: I just looked at exslt.org; lloyd, have you played with this much? Do you recommend an xslt parser which works with exslt? (from a quick scan, it appears XML::LibXSLT should; in which case, you're in luck, since it was written by Matt Sergeant and perhaps we can pick his brains for advice at a pm meeting!) ...as for me, just a XSLT neophyte; wrote one style-sheet a while ago... to translate from an XML to-do list into plain HTML. But I'd be interested in playing further. -Daniel On Thu, 3 Mar 2005, Eric - fishbot wrote: > > As one might predict, immediately after sending this: > > "As far as I can tell, folding the swap into a single statement is pure > masochism. I'm tempted to benchmark, but that's just masochism being > contagious." > > ...I immediately went and benchmarked the difference. > > http://kw.pm.org/wiki/index.cgi?ListShuffle > > Enjoy the masochism. If anyone has more insights, please > feel free to post. > > fishbot > > ---- original message : 2005-03-03 10:10pm : lloyd carr ---- > > > List::Util shuffle -is- Fisher-Yates: > > So shuffle is good. > > > I don't know much about XLST, I am afraid, though I notice that eXSLT > > implements a rand() somehow. You could look into that. > > Already have the rand() I understand, what I don't understand is how to > swap the nodes with the XSLT. > > > all XLST solution would be very clean, but I get the impression that you > > are looking to do a proof-of-concept, and thus practicality is irrelevant. > > Proof-of-concept is exactly it and of course I have never let practicality > get in the way of fun :-) > > I've subscribed to the XSLT and EXSLT lists. I'll lurk for a few days and > then slip my question into the bit stream ;-) > > Thanks fishbot > - Lloyd > > _______________________________________________ > kw-pm mailing list > kw-pm@pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From dcarr at sdf.lonestar.org Fri Mar 4 08:31:41 2005 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Fri Mar 4 08:31:58 2005 Subject: [kw-pm] exslt Message-ID: > I just looked at exslt.org; lloyd, have you played with this much? A little. >Do you recommend an xslt parser which works with exslt? I like the libxslt. >(from a quick scan, it appears XML::LibXSLT should; in which case, you're >in luck, since it was written by Matt Sergeant and perhaps we can pick >his brains for advice at a pm meeting!) Do you think he enjoyed himself? Remember what you thought of the place when you arrived from the Boston.pm. I thought he would have been taller ;-) > ...as for me, just a XSLT neophyte; I know Daniel, but it's OK, don't be ashamed of your neophytism ;-) > wrote one style-sheet a while ago... to translate from an XML to-do list >into plain HTML. Let me guess, you lost them both LOL >But I'd be interested in playing further. And isn't that why they invented Perl so we can play :-) - Lloyd P.S. Sorry Daniel, I'm just in one of those moods ;-) From daniel at coder.com Fri Mar 4 18:35:39 2005 From: daniel at coder.com (Daniel R. Allen) Date: Fri Mar 4 18:45:51 2005 Subject: [kw-pm] exslt In-Reply-To: Message-ID: On Fri, 4 Mar 2005, lloyd carr wrote: > > I just looked at exslt.org; lloyd, have you played with this much? > > A little. > > >Do you recommend an xslt parser which works with exslt? > > I like the libxslt. > > > ...as for me, just a XSLT neophyte; > > I know Daniel, but it's OK, don't be ashamed of your neophytism ;-) > > > wrote one style-sheet a while ago... to translate from an XML to-do list > >into plain HTML. > > Let me guess, you lost them both LOL touche. Nope, actually, due to dumb server incompatibilities, it got replaced with a bunch of regexes. Which was a pain, because I liked my little baby xslt. :) > >But I'd be interested in playing further. > > And isn't that why they invented Perl so we can play :-) Amen. -Daniel > - Lloyd From simon-kwpm at uc.org Tue Mar 8 12:43:14 2005 From: simon-kwpm at uc.org (simon-kwpm@uc.org) Date: Tue Mar 8 12:43:43 2005 Subject: [kw-pm] asterisk/voip enthusiasts Message-ID: Hey everybody, This is partially related to perl, in that you can control Asterisk with perl -- so maybe I'll do a talk on it in the near future ;) I'm starting a mailing list for Asterisk/VoIP enthusiasts in southern Ontario, and thought some of you might be interested. If you'd like to subscribe, send an email to asterisk-subscribe@uc.org The general topics are getting a home PBX hooked up with your regular phone line, sourcing hardware, getting VoIP from various providers in southern Ontario, as well as regulatory issues and end user license agreements if you want to expand beyond home use. It's an unmoderated list for now. If it gets spammy, we'll tweak the settings. Feel free to invite anyone to join. re, Simon From fhew3 at cogeco.ca Tue Mar 8 19:33:33 2005 From: fhew3 at cogeco.ca (Fulko Hew) Date: Tue Mar 8 19:33:46 2005 Subject: [kw-pm] Toronto Perl Mongers - Audio Archive - February 2005 Announcement Message-ID: <422E6E8D.6040608@cogeco.ca> The Audio Archive of the February 2005 meeting of the Toronto Perl Mongers group is now available online. This month's talk is called "Getting Your Data From There to Here" by Dan Friedman. The URL for the archives is: http://hew.ca/talks_audio/ From zookrick at kw.pm.org Thu Mar 10 21:50:42 2005 From: zookrick at kw.pm.org (zookrick@kw.pm.org) Date: Thu Mar 10 22:01:29 2005 Subject: [kw-pm] Meeting Thursday, March 17, 2005 Message-ID: Kitchener-Waterloo Perl Mongers Meeting Thursday, March 17, 2005 [1]fishbot will discuss rules and grammars in Perl 6 (formerly 'regular expressions') and what is available now for Perl 5. (Tell fishbot what you want to learn about, and what you are interested in at [2]Perl6Rules) Location: University of Waterloo, room DC3323. This month's pizza is donated by an anonymous benefactor. So we order the right amount, please sign up on the [3]PizzaList by noon of the day of the meeting. See our [4]FAQ for more information, or email [5]info@kw.pm.org. References 1. http://kw.pm.org/wiki/index.cgi?Fishbot 2. http://kw.pm.org/wiki/index.cgi?Perl6Rules 3. http://kw.pm.org/wiki/index.cgi?PizzaList 4. http://kw.pm.org/faq.html 5. mailto:info@kw.pm.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20050311/49b01175/attachment.htm From daniel at coder.com Mon Mar 14 11:02:17 2005 From: daniel at coder.com (Daniel R. Allen) Date: Mon Mar 14 11:13:27 2005 Subject: [kw-pm] schedule change Message-ID: Due to bad scheduling on my part, and abetted by timing conflicts among at least two other regulars, I propose moving the next two meetings ahead a week to the fourth Thursday of the month: March 24th, and April 21st. ... if this causes problems for anybody planning to come (in particular March's because of the <1 week notice), I sincerely apologize, since the original conflict was somewhat forseeable on my part. (or at least it might be if I merged my three calendars together.) Perhaps my goal for the April meeting should be to have something perl-ish and calendar-related to show off, possibly even "How I managed to stop worrying and love Oracle Calendar, KOrganizer, and Palm Calendar" :) ical thread, anyone? -Daniel From glim at mycybernet.net Sat Mar 19 11:33:00 2005 From: glim at mycybernet.net (glim@mycybernet.net) Date: Sat Mar 19 12:00:22 2005 Subject: [kw-pm] Yet Another Perl Conference, North America, 2005 Registration now open Message-ID: ----------> Yet Another Perl Conference, North America, 2005 Registration now open. Conference dates: Monday - Wednesday 27 - 29 June 2005 Location: 89 Chestnut Street http://89chestnut.com/ University of Toronto Toronto, Ontario, Canada Info at: http://yapc.org/America Direct registration: http://donate.perlfoundation.org/index.pl?node=registrant%20info&conference_id=423 Full registration fee $85 (USD) Book now for great deals on accommodations and ensure a space for yourself. Speaking slots are still open. If you would like to present at YAPC::NA 2005, see: http://yapc.org/America/cfp-2005.shtml Details of this announcement: http://yapc.org/America/registration-announcement-2005.txt <---------- More Details ============ Registration for YAPC::NA (Yet Another Perl Conference, North America) 2005 in Toronto, Ontario, Canada is now open. The conference registration price is USD$85. This price includes admission to all aspects of the conference, respectable amounts of catering, several activities and a few conference goodies. The YAPC North America 2005 conference features... * Fantastic speakers + most are the core creators of the technology on which they present + many are professional IT authors, trainers and conference speakers * An excellent learning opportunity * A chance to meet Perl professionals from all over North America and the world + YAPC attendees tend to be very involved in Perl and so are another great way to learn more about what the language has to offer beyond just what the speakers have to say * Extra-curricular / after hours activities * A great location in downtown Toronto All this, and the price is more than an order of magnitude cheaper than what commercial conferences can offer. This is because YAPC is a 100% volunteer effort, both from its organizers and its speakers. Quality is *not* sacrificed to achieve this stunning level of affordability. YAPC provides the best value-for-dollar in IT conferences. And it's a ton of fun, too. The dates of the conference are Monday - Wednesday 27-29 June 2005. The location is 89 Chestnut Street in downtown Toronto, Ontario, Canada. (Note that a different date block was previously announced; we moved the conference date to accommodate venue availability.) http://89chestnut.com/ -- a facility within the University of Toronto If you are at all interested in attending the conference... Book now! Book now! Book now! We have room for about 400 attendees and we hope to sell out well in advance of the late June conference date. However, the critical matter is that of hotels. The YAPC::NA 2005 organizers have made group arrangements with several facilities around the city to provide _excellent_ quality accommodations in _very_ convenient locations at _terrific_ prices for the _full_ capacity of conference attendees (around 400 people). (Finding, booking and paying accommodations is the responsibility of the attendees, but we will provide you with a list of the hotels and university dorms to try first based on our group arrangement with them when you register for the conference. Also, see the web site at http://yapc.org/America/accommodations-2005.shtml. More details will be up shortly. The dorm option will be approx. C$55/night, the hotel options will be more like C$90/night, and for slightly different prices there will be options for putting more than 1 person in a room. Exact details and how to book will be emailed directly to people who have registered for the conference as soon as they become available.) *The catch is -- book now!!* The group reservations will expire in early May, at which point in time the group rates will mostly still apply, but the rooms will be given out on an "availability basis". Which means that someone else outside of the YAPC group can book the rooms as well. Make no mistake -- the rooms *will* be sold. Toronto is a very active conference city in the summer and there will be _no_ guarantee of vacancies either at the facilities we made arrangements with or anywhere else in the city if you leave it to within 6 weeks of the conference date. So, if you want to save yourself the likely-fruitless headache of scrambling around looking for accommodations at the last minute, Book now! Book now! Book now! Have any questions? Email na-help@yapc.org for more details. Additionally, we are still welcoming submissions for proposals via: http://yapc.org/America/cfp-2005.shtml The close of the call-for-papers is April 18, 2005 at 11:59 pm (Toronto time). If you have any questions regarding the call-for-papers or speaking at YAPC::NA 2005 please email na-author@yapc.org We would love to hear from potential sponsors. Please contact the organizers at na-sponsor@yapc.org to learn about the benefits of sponsorship. From daniel at coder.com Tue Mar 22 10:05:22 2005 From: daniel at coder.com (Daniel R. Allen) Date: Tue Mar 22 10:17:31 2005 Subject: [kw-pm] Meeting Thursday, March 24, 2005 Message-ID: Here's a reminder for our meeting this Thursday. ---------- Forwarded message ---------- Date: Fri, 11 Mar 2005 00:50:42 -0500 From: zookrick@kw.pm.org To: kw-pm@mail.pm.org Subject: [kw-pm] Meeting Thursday, March 24, 2005 Kitchener-Waterloo Perl Mongers Meeting Thursday, March 17, 2005 [1]fishbot will discuss rules and grammars in Perl 6 (formerly 'regular expressions') and what is available now for Perl 5. [2] Location: University of Waterloo, room DC3323. This month's pizza is donated by an anonymous benefactor. So we order the right amount, please sign up on the [3]PizzaList by noon of the day of the meeting. See our [4]FAQ for more information, or email [5]info@kw.pm.org. References 1. http://kw.pm.org/wiki/index.cgi?Fishbot 2. http://kw.pm.org/wiki/index.cgi?Perl6Rules 3. http://kw.pm.org/wiki/index.cgi?PizzaList 4. http://kw.pm.org/faq.html 5. mailto:info@kw.pm.org From arguile at lucentstudios.com Tue Mar 22 16:22:51 2005 From: arguile at lucentstudios.com (Arguile) Date: Tue Mar 22 16:30:41 2005 Subject: [kw-pm] Meeting Thursday, March 24, 2005 In-Reply-To: References: Message-ID: <1111537370.18561.269.camel@broadswd.local> On Tue, 2005-03-22 at 13:05, Daniel R. Allen wrote: > Here's a reminder for our meeting this Thursday. > > ---------- Forwarded message ---------- > Date: Fri, 11 Mar 2005 00:50:42 -0500 > Kitchener-Waterloo Perl Mongers Meeting > > Thursday, March 17, 2005 Notice the date on that last email was wrong (in the body). Was I the only one who showed up *last* week? Heh. From daniel at coder.com Tue Mar 22 16:42:32 2005 From: daniel at coder.com (Daniel R. Allen) Date: Tue Mar 22 16:54:50 2005 Subject: [kw-pm] Meeting Thursday, March 24, 2005 In-Reply-To: <1111537370.18561.269.camel@broadswd.local> Message-ID: On 22 Mar 2005, Arguile wrote: > Notice the date on that last email was wrong (in the body). Yep, I forgot to change that. :/ > Was I the only one who showed up *last* week? Heh. Geez, I'm sorry. I guess you missed the post to the list? Arr. I wish it hadn't been necessary. The number of people who couldn't make it reached a critical number (including both of the people who could guarantee a room being open). However, for those who bear with us and show up on Thursday, there will be special door prizes. In addition to pizza. And the talk. :) -Daniel From eric at uc.org Wed Mar 23 10:49:17 2005 From: eric at uc.org (Eric - fishbot) Date: Wed Mar 23 10:49:28 2005 Subject: [kw-pm] Meeting Thursday, March 24, 2005 In-Reply-To: References: Message-ID: > However, for those who bear with us and show up on > Thursday, there will be special door prizes. Included in the set of door prizes is the latest copy of The Perl Review, containing Daniel's NineBlock article. Unless attendance is surprising, I should have one for everyone. I will subject you all to a short sales pitch for the magazine. I don't profit from this magazine monetarily, (in fact, I paid for the copies I am giving away) but I would like to see it do well. If anyone is interested in writing an article for publication, please talk to me. A yearly (4 issues) subscription (including shipping to Canada) is $20US. Online-only subscriptions are slightly less. Daniel, I believe, has a second set of door-prizes. > In addition to pizza. > And the talk. :) Oh, right. I should get on that. ;) fishbot :wq From stigliz at gmail.com Thu Mar 24 14:29:11 2005 From: stigliz at gmail.com (Amedeo Guffanti) Date: Thu Mar 24 14:29:19 2005 Subject: [kw-pm] Reseach on Open Source Developers Message-ID: Hi, I'm Amedeo Guffanti, a 22 years old Italian student at Bocconi university in Milan, I' m doing a research to write a work about Open Source Movement, in particular, about the developers. I try to collect the opinions of developers like you. My little poll is at this page : http://www.alberocavo.com/OSSprojects.asp It takes less then 4 minutes. I hope the Open Source Communities will give me a help for my research. I apologize for taking your time and for my English that I hope it's understandable ^^ Sincerly, Amedeo Guffanti From daniel at coder.com Fri Mar 25 05:38:51 2005 From: daniel at coder.com (Daniel R. Allen) Date: Fri Mar 25 05:39:07 2005 Subject: [kw-pm] last night's talk wrapup Message-ID: Thanks again to Eric for giving us the lowdown on Rules and Grammars to come in Perl 6- at least as far as anybody can predict. The (powerpoint) slides are on our website, under the "talks" section. And thanks to the anonymous pizza donor, as well as to The Perl Review and O'Reilly/Make Magazine for giving us free copies of their magazines. I don't think I actually said this, since I was waiting downstairs for the pizza, but O'Reilly also sent along review copies of two "Hack" books: Google Hacks (which is updated to include some for Gmail) and Mind Hacks. These are available to be checked out from our library. -Daniel -- http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da@coder.com From eric at uc.org Fri Mar 25 08:35:25 2005 From: eric at uc.org (Eric - fishbot) Date: Fri Mar 25 08:35:34 2005 Subject: [kw-pm] last night's talk wrapup In-Reply-To: References: Message-ID: > Thanks again to Eric for giving us the lowdown on Rules > and Grammars to come in Perl 6- at least as far as anybody > can predict. The (powerpoint) slides are on our website, > under the "talks" section. My pleasure. There is at least one error in the slides that I noticed during the talk. Also, the slides won't be terribly clear if you were there... they were mostly examples that I explained. > And thanks to the anonymous pizza donor, as well as to The > Perl Review and O'Reilly/Make Magazine for giving us free > copies of their magazines. Not that it matters, but I paid for those non-free copies of The Perl Review... though I got a nice discount on them. That said, I have two copies left for people who missed last night's meeting. I can bring them in April for anyone that wants them and emails me to express that want digitally. fishbot :wq From dcarr at sdf.lonestar.org Sat Mar 26 11:25:19 2005 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Sat Mar 26 11:26:01 2005 Subject: [kw-pm] last night's talk wrapup In-Reply-To: References: Message-ID: > My pleasure. There is at least one error in the slides that I > noticed during the talk. Also, the slides won't be terribly > clear if you were there... they were mostly examples that I > explained. "...won't be terribly clear if you were there...", I was there and I would have to agree ;-) > > And thanks to the anonymous pizza donor, as well as to The > > Perl Review and O'Reilly/Make Magazine for giving us free > > copies of their magazines. > > Not that it matters, but I paid for those non-free copies of The > Perl Review... though I got a nice discount on them. That said, > I have two copies left for people who missed last night's > meeting. I can bring them in April for anyone that wants them > and emails me to express that want digitally. So that's non-free as in beer, but cheap as in discount ;-) - Lloyd From rpjday at mindspring.com Wed Mar 30 05:35:23 2005 From: rpjday at mindspring.com (Robert P. J. Day) Date: Wed Mar 30 05:37:21 2005 Subject: [kw-pm] auto-deps for perl 'usr lib' directives in makefiles? Message-ID: is there a way (as with C include files) to have perl programs have auto-dependencies that are processed by makefiles? example: use lib (..., ..., ...) ; use module1 ; use module2 ; use module3 ; ... obviously, this program might be dependent on changes in those libs, and, while one can hardcode those .pm files into the makefile before this program is run, is there a better way to do it? (i'm *really* tired this morning so i'm almost certainly barely coherent.) rday From eric at uc.org Wed Mar 30 10:40:13 2005 From: eric at uc.org (Eric - fishbot) Date: Wed Mar 30 10:40:37 2005 Subject: [kw-pm] auto-deps for perl 'usr lib' directives in makefiles? In-Reply-To: References: Message-ID: > is there a way (as with C include files) to have perl programs have > auto-dependencies that are processed by makefiles? > > example: > > use lib (..., ..., ...) ; > use module1 ; > use module2 ; > use module3 ; > ... > > obviously, this program might be dependent on changes in those libs, > and, while one can hardcode those .pm files into the makefile before > this program is run, is there a better way to do it? > > (i'm *really* tired this morning so i'm almost certainly barely > coherent.) Okay, I'll bite: You are running a perl application and handling dependencies from makefiles? Or creating a makefile to install a bundle of modules? I am really not clear on what your layout here is. Explain a little about how the system is structured, so that we can understand the problem? Particularly the phrase "this program might be dependent on changes in those libs" confuses me. If the libraries -do- change, what action should your makefile/app be performing? Eric From simon-kwpm at uc.org Wed Mar 30 11:13:07 2005 From: simon-kwpm at uc.org (simon-kwpm@uc.org) Date: Wed Mar 30 11:13:19 2005 Subject: [kw-pm] auto-deps for perl 'usr lib' directives in makefiles? In-Reply-To: References: Message-ID: Hey Robert, Are you using ExtUtils::MakeMaker to create your make file? It has tags for defining dependencies (PREREQ_.*) i.e. use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'BorkBork', 'PREREQ_PM' => { 'Some::Module' => 1.0.3, }, ); re, spd * ON-Asterisk Mailing List / http://uc.org/asterisk * On Wed, 30 Mar 2005, Eric - fishbot wrote: > > is there a way (as with C include files) to have perl programs have > > auto-dependencies that are processed by makefiles? > > > > example: > > > > use lib (..., ..., ...) ; > > use module1 ; > > use module2 ; > > use module3 ; > > ... > > > > obviously, this program might be dependent on changes in those libs, > > and, while one can hardcode those .pm files into the makefile before > > this program is run, is there a better way to do it? > > > > (i'm *really* tired this morning so i'm almost certainly barely > > coherent.) > > Okay, I'll bite: You are running a perl application and > handling dependencies from makefiles? Or creating a > makefile to install a bundle of modules? I am really not > clear on what your layout here is. > > Explain a little about how the system is structured, so that > we can understand the problem? Particularly the phrase > "this program might be dependent on changes in those libs" > confuses me. If the libraries -do- change, what action > should your makefile/app be performing? > > Eric > _______________________________________________ > kw-pm mailing list > kw-pm@pm.org > http://mail.pm.org/mailman/listinfo/kw-pm >