From elbie at trig.net Tue Aug 1 07:37:48 2006 From: elbie at trig.net (Christopher Calzonetti) Date: Tue, 1 Aug 2006 10:37:48 -0400 Subject: [kw-pm] August Social Message-ID: <20060801143748.GB91040@trig.net> This month's meeting is our ~4th annual social BBQ event. Come celebrate kw.pm's 4th anniversary a little early (it's actually in September) or just drop by and satisfy your caveman (or woman) urges to cook meat over an open flame. We'll be starting around 7pm at my (Elbie's) place: 35 Alexandra Av, #101 Waterloo, ON http://maps.google.ca/maps?f=q&hl=en&q=35+alexandra+av,+waterloo,+on There's usually plenty of parking the building's lot, accessible from Alexandra, but there's plenty of public lots, that are free after 5pm. Both Lot C and Lot A at the corner of Caroline and Alexandra are very close to my building. I'll have a selection of beverages, and a small selection of store-bought burgers/hot dogs, but if you want to bring something specific to grill, I've got two small hibachi grills for your charring enjoyment. BYOB. If you want to partake of the burgers/hot dogs, let me know, so I have a rough idea of how much to buy. If anyone has specific vegetarian or allergy needs, please let me know, and I will do my best to accomodate you. -- Christopher Calzonetti, Technical Lead, Trig.Net Web: http://www.trig.net/ Mail: mailto:chris at trig.net From daniel at coder.com Tue Aug 1 07:53:20 2006 From: daniel at coder.com (Daniel R. Allen) Date: Tue, 1 Aug 2006 10:53:20 -0400 (EDT) Subject: [kw-pm] August Social In-Reply-To: <20060801143748.GB91040@trig.net> Message-ID: On Tue, 1 Aug 2006, Christopher Calzonetti wrote: > This month's meeting is our ~4th annual social BBQ event. Come celebrate > kw.pm's 4th anniversary a little early (it's actually in September) or just > drop by and satisfy your caveman (or woman) urges to cook meat over an open > flame. I'll bring a cake. No promise of a big 4 candle. I suggest we each drink 4 beers. > charring enjoyment. BYOB. If you want to partake of the burgers/hot > dogs, let me know, so I have a rough idea of how much to buy. Cool. Howzabout http://kw.pm.org/wiki/BBQList ? That way I can know how big a cake to bake, too. -Daniel > If anyone has specific vegetarian or allergy needs, please let me > know, and I will do my best to accomodate you. > -- > Christopher Calzonetti, Technical Lead, Trig.Net > Web: http://www.trig.net/ Mail: mailto:chris at trig.net > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From da at coder.com Tue Aug 1 07:55:35 2006 From: da at coder.com (Daniel R. Allen) Date: Tue, 1 Aug 2006 10:55:35 -0400 (EDT) Subject: [kw-pm] August Social In-Reply-To: Message-ID: howzabout a url that works. :) http://kw.pm.org/wiki/index.cgi?BBQList From dcarr at sdf.lonestar.org Tue Aug 1 16:44:43 2006 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Tue, 1 Aug 2006 23:44:43 +0000 (UTC) Subject: [kw-pm] August Social In-Reply-To: References: Message-ID: > howzabout a url that works. :) > http://kw.pm.org/wiki/index.cgi?BBQList Should I be concerned that they both seem to work? From dcarr at sdf.lonestar.org Tue Aug 1 16:59:35 2006 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Tue, 1 Aug 2006 23:59:35 +0000 (UTC) Subject: [kw-pm] August Social In-Reply-To: <20060801143748.GB91040@trig.net> References: <20060801143748.GB91040@trig.net> Message-ID: Chris I'll bring you some fresh farmers sausage. Would you like regular, hot, garlic, smoked... or a variety? - Lloyd From dc0955 at gates.com Thu Aug 10 06:14:58 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 07:14:58 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C25@EXMAIL2.ec.cf.com> This is sort of test of my work email. The list has worked in the past from my work, but I don't seem to be able to get emails sent direct from fish to my work email! Anyway I'll open it up to the rest, what I'm looking for is a crossword fill algorithm to be used to assist in the creation of crossword puzzles. Given a grid of black and white squares how do you fill all the white squares with letters so that all the contiguous vertical and horizontal white spaces contain words from a given list? A rather brutish solution has come to mind, but elegance of thought is what you guys are known for ;) - Lloyd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20060810/0c7344ee/attachment.html From dc0955 at gates.com Thu Aug 10 06:53:26 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 07:53:26 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C2C@EXMAIL2.ec.cf.com> Well the list still works from here. - Lloyd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20060810/e6802319/attachment.html From elbie at trig.net Thu Aug 10 07:23:34 2006 From: elbie at trig.net (Christopher Calzonetti) Date: Thu, 10 Aug 2006 10:23:34 -0400 Subject: [kw-pm] test fish crossword test In-Reply-To: <71157FC6AFED794AA91333926F0C23F0469C25@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F0469C25@EXMAIL2.ec.cf.com> Message-ID: <20060810142334.GA60264@trig.net> On Thu, Aug 10, 2006 at 07:14:58AM -0600, Carr, Dave wrote: > This is sort of test of my work email. The list has worked in the past > from my work, but I don't seem to be able to get emails sent direct from > fish to my work email! > > > > Anyway I'll open it up to the rest, what I'm looking for is a crossword > fill algorithm to be used to assist in the creation of crossword > puzzles. Given a grid of black and white squares how do you fill all the > white squares with letters so that all the contiguous vertical and > horizontal white spaces contain words from a given list? A rather > brutish solution has come to mind, but elegance of thought is what you > guys are known for ;) In fact, what you're asking for, is likely very very hard. As far as I know, most puzzle designers start with a completely blank grid, and start creating blacked out squares as added words impose restrictions on the layout. If you start with a specific shape for the crossword, there's probably no easy way to know if you can in fact populate it with your word list. -- Christopher Calzonetti, Technical Lead, Trig.Net Web: http://www.trig.net/ Mail: mailto:chris at trig.net From dc0955 at gates.com Thu Aug 10 07:50:50 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 08:50:50 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C46@EXMAIL2.ec.cf.com> >In fact, what you're asking for, is likely very very hard. As far as I >know, most puzzle designers start with a completely blank grid, and start >creating blacked out squares as added words impose restrictions on the >layout. If you start with a specific shape for the crossword, there's >probably no easy way to know if you can in fact populate it with your word >list. When they do it by hand yes, but there is already software that does it starting from given layouts of blacked out squares. The word lists used are large, like tweaked dictionary lists. With a large enough word list and a reasonable layout I would think most grids could have many possible fills. >From what I have read so far the problem seems to be one of efficiency and good backtracking, but much of the stuff is dated, what took hours when the paper was written may take seconds today. - Lloyd From dc0955 at gates.com Thu Aug 10 08:17:43 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 09:17:43 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C52@EXMAIL2.ec.cf.com> Just a warning if you don't help me you may have to endure a lightning talk on my very ugly kludged attempt at it ;) - Lloyd From kw-pm at datademons.com Thu Aug 10 08:17:35 2006 From: kw-pm at datademons.com (Justin Wheeler) Date: Thu, 10 Aug 2006 11:17:35 -0400 (EDT) Subject: [kw-pm] test fish crossword test In-Reply-To: <71157FC6AFED794AA91333926F0C23F0469C52@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F0469C52@EXMAIL2.ec.cf.com> Message-ID: Is that a threat or a promise? Justin On Thu, 10 Aug 2006, Carr, Dave wrote: > Just a warning if you don't help me you may have to endure a lightning > talk on my very ugly kludged attempt at it ;) > > - Lloyd > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From dc0955 at gates.com Thu Aug 10 08:47:46 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 09:47:46 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C5F@EXMAIL2.ec.cf.com> >Is that a threat or a promise? YOU! You get tied to a chair and forced to listen to my attempt at Vogon poetry. From dc0955 at gates.com Thu Aug 10 09:03:41 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 10:03:41 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C64@EXMAIL2.ec.cf.com> >I don't know what that is, but it sounds scary. :P > >Justin *lloyd: Throws a copy of the Hitchhikers Guide to the Galaxy at Justin's head. >>> Is that a threat or a promise? >> >> YOU! You get tied to a chair and forced to listen to my attempt at Vogon >> poetry. From eric at uc.org Thu Aug 10 09:13:37 2006 From: eric at uc.org (fishbot) Date: Thu, 10 Aug 2006 12:13:37 -0400 (EDT) Subject: [kw-pm] test fish crossword test In-Reply-To: <71157FC6AFED794AA91333926F0C23F0469C46@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F0469C46@EXMAIL2.ec.cf.com> Message-ID: > When they do it by hand yes, but there is already software that does it > starting from given layouts of blacked out squares. The word lists used are > large, like tweaked dictionary lists. With a large enough word list and a > reasonable layout I would think most grids could have many possible fills. > > From what I have read so far the problem seems to be one of efficiency and > good backtracking, but much of the stuff is dated, what took hours when the > paper was written may take seconds today. One of the issues with this sort of fill problem is that it the choice tree is not very deep, but insanely wide. Realistically, you likely want a list of 10k works to choose from, but only a fraction of those will be candidates for a given slot. Assume a naive recursive algorithm, where you fill one word, recurse, if that fails, attempt the next. On entry, our subroutine has a partially completed grid, and we can pick which slot we want to look at next. We want to pick the most constrained slot each time, to reduce the branches high on the tree. Most constrained should likely mean the slot for which there are the fewest candidates. Up high, that likely means the longest slot, lower down it likely means the slots with the highest percentage of committed letters. It is similar to Sudoku solving, in that at each step, you make a where and what decision. As in the Sudoku problem, you likely want the where to be deterministic, and the what to be non-deterministic. It would in theory be possible to use the same DLX-inspired bitvector approach I used in the Sudoku generator, but the scale might be stupid. For a 15x15 grid, I think we'd be looking at about 6000 columns, and the rows would be in the 100k range. Be worth trying, though, I think. Do you have a grid and a wordlist that we can experiment with? Eric From dc0955 at gates.com Thu Aug 10 10:02:26 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 11:02:26 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C74@EXMAIL2.ec.cf.com> >Be worth trying, though, I think. Do you have a grid and a >wordlist that we can experiment with? Wow put me on the spot. Hmmmm... Most real 15X15 puzzle grids contain at least four or five long answers that are made up of more than one word, the theme answers. If we only allowed single word fills, the longest words would have to be 7 or 8 letters long, in other words I might have to cook up a grid rather then just steal one or maybe it would be better to just cut to the real problem and use a real puzzle with the theme answers prefilled? To start with the word list could just be a spell or dict list with the words under 3 and over 8 removed, oh and no hyphens etc. couldn't it? - Lloyd From eric at uc.org Thu Aug 10 10:33:51 2006 From: eric at uc.org (fishbot) Date: Thu, 10 Aug 2006 13:33:51 -0400 (EDT) Subject: [kw-pm] test fish crossword test In-Reply-To: <71157FC6AFED794AA91333926F0C23F0469C74@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F0469C74@EXMAIL2.ec.cf.com> Message-ID: ---- original message : 2006-08-10 11:02am : Carr, Dave ---- > >> Be worth trying, though, I think. Do you have a grid and a >> wordlist that we can experiment with? > > Wow put me on the spot. Hmmmm... Most real 15X15 puzzle grids contain at > least four or five long answers that are made up of more than one word, > the theme answers. If we only allowed single word fills, the longest > words would have to be 7 or 8 letters long, in other words I might have > to cook up a grid rather then just steal one or maybe it would be better > to just cut to the real problem and use a real puzzle with the theme > answers prefilled? To start with the word list could just be a spell or > dict list with the words under 3 and over 8 removed, oh and no hyphens > etc. couldn't it? I would suggest real puzzle, but just insert the theme answers into the candidate list. The selection algorithm should place these first, and there is likely only a single configuration anyway. If we can keep the candidate list down to about 5k words that would give us a pared-down problem to start with. Eric From dc0955 at gates.com Thu Aug 10 10:59:45 2006 From: dc0955 at gates.com (Carr, Dave) Date: Thu, 10 Aug 2006 11:59:45 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469C7E@EXMAIL2.ec.cf.com> >I would suggest real puzzle, but just insert the theme answers >into the candidate list. The selection algorithm should place >these first, and there is likely only a single configuration >anyway. Easy since I do about four 15X15 puzzles a day :) >If we can keep the candidate list down to about 5k words that >would give us a pared-down problem to start with. I'd have to include three and four letter acronyms, short forms, proper names etc. I would think a smaller list might actually make it harder for the algorithm to find a fill? If I include all the words in the actual solution in the list we know that the program should find at least one solution ;) I'll cobble one together tonight. - Lloyd From dc0955 at gates.com Fri Aug 11 08:03:29 2006 From: dc0955 at gates.com (Carr, Dave) Date: Fri, 11 Aug 2006 09:03:29 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469D2B@EXMAIL2.ec.cf.com> Is there a max size of email that can be sent to the mailing list? - Lloyd From dc0955 at gates.com Fri Aug 11 08:09:37 2006 From: dc0955 at gates.com (Carr, Dave) Date: Fri, 11 Aug 2006 09:09:37 -0600 Subject: [kw-pm] test fish crossword test Message-ID: <71157FC6AFED794AA91333926F0C23F0469D2E@EXMAIL2.ec.cf.com> >Is there a max size of email that can be sent to the mailing list? Well I guess I answered my own question. I tried to email the word list to the mailing list and it didn't seem to work. Did you get it fish? - Lloyd From daniel at coder.com Fri Aug 11 08:25:37 2006 From: daniel at coder.com (Daniel R. Allen) Date: Fri, 11 Aug 2006 11:25:37 -0400 (EDT) Subject: [kw-pm] test fish crossword test In-Reply-To: <71157FC6AFED794AA91333926F0C23F0469D2E@EXMAIL2.ec.cf.com> Message-ID: Urm. There is a 100K limit, I believe. ...if you all listen carefully, you can hear the sound of 50 or so subscribers holding their breath and preparing to unsubscribe. In case you were serious about posting your word list to the mailing list, please don't; lots of people still do have mail quotas, and mailing a dictionary to a mailing list is dumb. Thanks. -Daniel On Fri, 11 Aug 2006, Carr, Dave wrote: > >Is there a max size of email that can be sent to the mailing list? > > Well I guess I answered my own question. I tried to email the word list > to the mailing list and it didn't seem to work. Did you get it fish? > > - Lloyd > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From dc0955 at gates.com Fri Aug 11 10:11:07 2006 From: dc0955 at gates.com (Carr, Dave) Date: Fri, 11 Aug 2006 11:11:07 -0600 Subject: [kw-pm] I will not post megabytes to the list. I will not...X100 Message-ID: <71157FC6AFED794AA91333926F0C23F0469D50@EXMAIL2.ec.cf.com> I realize what it looked like after I reread my posts and can understand why Daniel and others may have been alarmed. The word list was 2989 words, mostly three and four letters long, and while long for a mailing list, not the megabytes Daniel was expecting. It was dumb to post even that to the list and if any of you received it I apologize. Here is the grid and if anyone wants the 2989 words I'll send it to you off-list. The grid: 13X14 X---X----X--- ----X----X--- ----X----X--- -------X----- XXX---X---XXX -----X------X ---X----X---- ----X----X--- X------X----- XXX---X---XXX -----X------- ---X----X---- ---X----X---- ---X----X---X - Lloyd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20060811/4e5e7a4b/attachment.html From dcarr at sdf.lonestar.org Sat Aug 12 03:35:03 2006 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Sat, 12 Aug 2006 10:35:03 +0000 (UTC) Subject: [kw-pm] crosswords, large emails and stupidity Message-ID: As reported by the only person who seems to have received my email bomb it was 18K and my apology was 10K! So I guess I should be sorry for apologizing ;) Also I apparently tripped spam filters by stupidly using the capitalized version of the 24th letter of the alphabet three times in a row as part of my ascii art representation of the crossword grid. But wait even more horrors, the list contains a three letter world for which I would give the crossword clue "a bird of the family Paridae", but which I would never use in a crossword because it is also a vulgarism for - cover your ears spam filter - a woman's breast. Obviously I'm too dumb to use email, anyone still wanting a copy of the 2954 words you can't say on the mailing list will have to send me a blank CD and a self addressed stamped envelope and I'll burn you a copy and mail it back to you :P - Lloyd P.S. For those too young to get my "words you can't say" reference (i.e. Justin) check out http://en.wikipedia.org/wiki/George_Carlin Take special note of the "Seven Words You Can Never Say on Television" and his 1972 arrest report (*warning contains coarse language*). My how times have changed or have they? dcarr at sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From dcarr at sdf.lonestar.org Sat Aug 12 03:50:27 2006 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Sat, 12 Aug 2006 10:50:27 +0000 (UTC) Subject: [kw-pm] crosswords, large emails and stupidity In-Reply-To: References: Message-ID: > wait even more horrors, the list contains a three letter world for which I Three letter world? Did you mean three letter word? Oh and did I mention he talks to himself too! - Lloyd dcarr at sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From roberthpike at yahoo.com Tue Aug 15 07:43:37 2006 From: roberthpike at yahoo.com (Robert Pike) Date: Tue, 15 Aug 2006 07:43:37 -0700 (PDT) Subject: [kw-pm] __END__ and __DATA Message-ID: <20060815144337.75858.qmail@web54713.mail.yahoo.com> Anyone have any thorough and helpful notes/ share personal experiences on using __END__ and __DATA__? Exact placement of (i.e. any needed trailing lines, etc..,), where to use, effects of, best uses for, and whether multiple ones can be placed in the same script (and, if so, how they are treated). Thanks in advance. Rob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kw-pm at datademons.com Tue Aug 15 07:52:23 2006 From: kw-pm at datademons.com (Justin Wheeler) Date: Tue, 15 Aug 2006 10:52:23 -0400 (EDT) Subject: [kw-pm] __END__ and __DATA In-Reply-To: <20060815144337.75858.qmail@web54713.mail.yahoo.com> References: <20060815144337.75858.qmail@web54713.mail.yahoo.com> Message-ID: Only thing that quickly comes to mind for me is mod_perl + __DATA__ and __END__ have been known to blow up and leave you wondering for a very long time what the hell is going on. I learned it had something to do with mod_perl wrapping your code in an eval {} block, but I could be wrong. Just something to think about. Justin On Tue, 15 Aug 2006, Robert Pike wrote: > Anyone have any thorough and helpful notes/ share > personal experiences on using __END__ and __DATA__? > Exact placement of (i.e. any needed trailing lines, > etc..,), where to use, effects of, best uses for, and > whether multiple ones can be placed in the same script > (and, if so, how they are treated). Thanks in advance. > > Rob > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From eric at uc.org Tue Aug 15 08:13:08 2006 From: eric at uc.org (eMaki) Date: Tue, 15 Aug 2006 11:13:08 -0400 (EDT) Subject: [kw-pm] __END__ and __DATA In-Reply-To: <20060815144337.75858.qmail@web54713.mail.yahoo.com> References: <20060815144337.75858.qmail@web54713.mail.yahoo.com> Message-ID: > Anyone have any thorough and helpful notes/ share > personal experiences on using __END__ and __DATA__? > Exact placement of (i.e. any needed trailing lines, > etc..,), where to use, effects of, best uses for, and > whether multiple ones can be placed in the same script > (and, if so, how they are treated). Thanks in advance. see "Special Literals" in perldata. Depends what you mean by script. A file can only have one, but a program can have many files. However, the DATA filehandle is a package variable, not a lexical. If you have multiple files in one package, you can't have DATA sections in both, or at least you shouldn't. One gotcha is closing DATA - that's up to you. If you use DATA sections, then your program has an open filehandle for your program file, even after Perl would normally release it. So normal OS locking applies. This has bit me a number of times... starting a long running listener with a __DATA__ section, and not being able to rename the file, etc. __END__ is only special in your main script file, everywhere else it is just a stop-parsing mark. I don't personally ever use them in production code - I put data in datafiles. fishbot From ceeshek at gmail.com Tue Aug 15 08:16:57 2006 From: ceeshek at gmail.com (Cees Hek) Date: Tue, 15 Aug 2006 11:16:57 -0400 Subject: [kw-pm] __END__ and __DATA In-Reply-To: <20060815144337.75858.qmail@web54713.mail.yahoo.com> References: <20060815144337.75858.qmail@web54713.mail.yahoo.com> Message-ID: On 8/15/06, Robert Pike wrote: > Anyone have any thorough and helpful notes/ share > personal experiences on using __END__ and __DATA__? > Exact placement of (i.e. any needed trailing lines, > etc..,), where to use, effects of, best uses for, and > whether multiple ones can be placed in the same script > (and, if so, how they are treated). Thanks in advance. I don't have any thorough notes, but here are some quick points: - You only need one of __END__ or __DATA__, as they both serve the same purpose - for placement, it has to appear at the end of the file - You can only have one __DATA__ section in your file (if you really want more, you can look at Damian's Inline::File module, but I would avoid it at all costs) - Be careful using __DATA__ in a program that forks as you will effectively be forking a process with an open filehandle I only ever use __DATA__ sections in simple little scripts, sometimes in example scripts that I post to mailing lists (being able to post one file is much easier than needing the user to save multiple files and worry about paths and such things). One example being when highlighting a feature in Template Toolkit: use Template; my $template = Template->new( POST_CHOMP => 1 ); my $data = { one => [qw(a b c d e)], two => [qw(f g h i j)], }; $template->process(\*DATA, $data) or die $template->error; __DATA__ [% FOREACH letter IN one %] [% letter %][% UNLESS loop.last %], [% END %] [% END %] [% two.join(', ') %] Hope that helps somewhat... Cheers, Cees From matt at sergeant.org Tue Aug 15 20:37:39 2006 From: matt at sergeant.org (Matt Sergeant) Date: Tue, 15 Aug 2006 23:37:39 -0400 Subject: [kw-pm] __END__ and __DATA In-Reply-To: References: <20060815144337.75858.qmail@web54713.mail.yahoo.com> Message-ID: <1465BB45-AD85-45BF-A614-2F83FF57124D@sergeant.org> On 15-Aug-06, at 11:13 AM, eMaki wrote: > I don't personally ever use them in production code - I put data > in datafiles. Except this is a beautiful thing (on unix, at least): flock(DATA, 2 | 4) || die "currently running"; ... # perl script run in cron job here __DATA__ flock me baby Oh, and I just used __DATA__ in AxKit2. Oops :-) From roberthpike at yahoo.com Fri Aug 18 10:56:33 2006 From: roberthpike at yahoo.com (Robert Pike) Date: Fri, 18 Aug 2006 10:56:33 -0700 (PDT) Subject: [kw-pm] MySQL Message-ID: <20060818175633.81429.qmail@web54702.mail.yahoo.com> Anyone know a good resource on starting out using MySQL and using Perl with it (i.e. good description and examples)? Thanks. Rob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From daniel at coder.com Fri Aug 18 11:54:11 2006 From: daniel at coder.com (Daniel R. Allen) Date: Fri, 18 Aug 2006 14:54:11 -0400 (EDT) Subject: [kw-pm] MySQL In-Reply-To: <20060818175633.81429.qmail@web54702.mail.yahoo.com> Message-ID: I'd say the best online intro resource is by mjd: http://www.perl.com/pub/a/1999/10/DBI.html >From that, I'd either go to the O'Reilly book "Programming the Perl DBI" (http://books.google.com/books?vid=ISBN1565926994&id=zbnkLLaFxtcC) or straight to perlmonks' tutorials: http://www.perlmonks.org/?node=Tutorials#Databases I've not read it, but this looks like an OK book too, "Managing & Using MySQL", also published by O'Reilly. http://books.google.com/books?vid=ISBN0596002114&id=4U0VSMe0TQoC&pg=PA147 -Daniel On Fri, 18 Aug 2006, Robert Pike wrote: > Anyone know a good resource on starting out using > MySQL and using Perl with it (i.e. good description > and examples)? Thanks. > > Rob > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From roberthpike at yahoo.com Thu Aug 31 11:22:14 2006 From: roberthpike at yahoo.com (Robert Pike) Date: Thu, 31 Aug 2006 11:22:14 -0700 (PDT) Subject: [kw-pm] Job Opportunity Message-ID: <20060831182214.53509.qmail@web54710.mail.yahoo.com> Hi All, Just had a company contact me for a position they currently have open in the Georgetown (Ontario) area. I told the company rep (I believe the he was actually the owner) that I wasn't interested but (upon his approval of course) would let anyone I know about the position in the case any party(ies) were interested. Anyone seeking employment feel free to give me an e-mail and I'll send off the specs (the position is also looking for Unix/Linux, AJAX, and MySQL plus bonuses would be C++, Java, etc.., (the normal stuff)). Thanks. Rob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kw-pm at datademons.com Thu Aug 31 11:33:45 2006 From: kw-pm at datademons.com (Justin Wheeler) Date: Thu, 31 Aug 2006 14:33:45 -0400 (EDT) Subject: [kw-pm] Job Opportunity In-Reply-To: <20060831182214.53509.qmail@web54710.mail.yahoo.com> References: <20060831182214.53509.qmail@web54710.mail.yahoo.com> Message-ID: Funny you sent this e-mail. We were just talking about you. ;) I work at said company. We're looking for a perl programmer (mostly). C++ is (almost) never used, Java I've had to touch on a bit for a future project, AJAX is *never* used. MySQL and Oracle are the big ones. PostGreSQL is used too, but I've not had to deal with it yet. I can probably give more information should you require it, so feel free to contact me aswell. :) Justin On Thu, 31 Aug 2006, Robert Pike wrote: > Hi All, > Just had a company contact me for a position they > currently have open in the Georgetown (Ontario) area. > I told the company rep (I believe the he was actually > the owner) that I wasn't interested but (upon his > approval of course) would let anyone I know about the > position in the case any party(ies) were interested. > Anyone seeking employment feel free to give me an > e-mail and I'll send off the specs (the position is > also looking for Unix/Linux, AJAX, and MySQL plus > bonuses would be C++, Java, etc.., (the normal > stuff)). Thanks. > > Rob > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm >