Re: hash lookup with regex

2003-08-19 Thread James E Keenan
Eeek! I cut-and-pasted the wrong text as part of my last post. I should have stated: Given your code below, I assume you mean: "%hash1 contains *keys* such as 111.666.fff.jjj.ccc.222". If the *values* of %hash1 and %hash2 are strictly numeric (as would be the case if these are "seen-hashes"),

Re: hash lookup with regex

2003-08-19 Thread James E Keenan
> Message: 9 > From: "Martin Bower" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: hash lookup with regex > Date: Tue, 19 Aug 2003 11:31:16 + > I have 2 hashes, one with 10,000 entries and the other with 5,000, and > > %hash1 contains values such as "111.666.fff.jjj.ccc.222" > %hash

Re: OSX - Thanks everyone

2003-08-19 Thread Randal L. Schwartz
> "Alex" == Alex Brewer <[EMAIL PROTECTED]> writes: Alex> Dear Perl Mongers Alex> Many thanks for your observant comments. I am happy to prepend ./ to Alex> my commands, it seems to work. I didn't realise that the current path Alex> wasn't included by default as it is in NT (= MS-DOS - an oper

Re: OSX - 'the real question'

2003-08-19 Thread Chris Devers
On Tue, 19 Aug 2003, David Wright wrote: > Alternatively (3), if you're happy replacing rather than supplementing > the existing perl, there are some foolproof installers here: > http://serverlogistics.com/downloads-jag.php. (not just perl.) This option seems to be unpopular among a lot of people

OSX - Thanks everyone

2003-08-19 Thread Alex Brewer
Dear Perl Mongers Many thanks for your observant comments. I am happy to prepend ./ to my commands, it seems to work. I didn't realise that the current path wasn't included by default as it is in NT (= MS-DOS - an operating system only as good as it resembles Unix in my opinion). "echo $PATH"

Re: perl and marketing

2003-08-19 Thread David H. Adler
On Tue, Aug 19, 2003 at 05:00:59AM -0700, Dave Cross wrote: > > I'm sure I did stuff in different bases pretty early on in school. > In fact, I _know_ that we much have at least touched on base > 12 so that we could deal with the monetary system. Speaking of which, the aforementioned Schoolhouse

SVG::TT::Graph - now with Bar Graphs.

2003-08-19 Thread Leo Lapworth
Hi All, Ok, we've got first versions of bar graphs as requested, Pie charts on the way. Examples: http://leo.cuckoo.org/projects/SVG-TT-Graph/examples/ Code: http://leo.cuckoo.org/projects/SVG-TT-Graph/ The API isn't likely to change much, but I won't promise anything at this stage. Still m

Re: SVG::Graph - online first draft

2003-08-19 Thread Ian Brayshaw
Robin Berjon wrote: > Also, at some point there should be a > new version of XML::LibRSVG but I haven't heard about it in a while. ... That would be because I have not been in communication about it. My bad. I have nearly completed the next release of XML::LibRSVG which will allow you to genera

Re: hash lookup with regex

2003-08-19 Thread Dave Cross
From: "Martin Bower" <[EMAIL PROTECTED]> Date: 8/19/03 11:31:16 AM > apologies for perl content :-) > > I have 2 hashes, one with 10,000 entries and the other > with 5,000, and these are loaded from a database > table(sybase). > > %hash1 contains values such as "111.666.fff.jjj.ccc.222" > %

Re: hash lookup with regex

2003-08-19 Thread Steve Keay
On Tue, Aug 19, 2003 at 11:31:16AM +, Martin Bower wrote: > %hash1 contains values such as "111.666.fff.jjj.ccc.222" > %hash2 contains values such as "111.666.fff.___.ccc.222" (where the ___ > can eixst in any position) If there is only ever one "___" in a value you could generate all 6 po

Re: hash lookup with regex

2003-08-19 Thread Martin Bower
Andy Ford wrote: You could cast them both to arrays and use the perl module Algorithm::Diff to calculate the differences between them. hmm. had a quick look and I don't think the MATCH function will match the regex either, the code below (taken from http://www.stonehenge.com/merlyn/UnixReview/co

Re: hash lookup with regex

2003-08-19 Thread Mark Fowler
On Tue, 19 Aug 2003, Martin Bower wrote: > is there a quick way for me to see if a value contained in %hash2 [after > being mutated someway] exists in %hash1 ? without resorting to as nested > loop foreach hash. If you've got the memory (and looking at it, you're not dealing with too many items y

Re: SVG::Graph..

2003-08-19 Thread Leo Lapworth
Thanks for all the feedback everyone. I'm going to rename the module SVG::TT::Graph so we'll have: SVG::TT::Graph SVG::TT::Graph::Line SVG::TT::Graph::Pie etc.. I don't see any point keeping the burner seperate now (the base object really doesn't do much, it's all in the template, if someone rea

Re: Bra

2003-08-19 Thread Sam Vilain
> This counts as "art" rather than debauchery? On the basis that > debauchery is frowned on at social meetings? /me smells a "what is art?" debate coming on... /me farts in order to mask any such smell before things get out of hand. -- Sam Vilain, [EMAIL PROTECTED] A seeming ignoran

Re: SVG::Graph..

2003-08-19 Thread Robin Berjon
[EMAIL PROTECTED] wrote: That's essentially the same issue in the SVG namespace. So far, we've managed to preserve SVG:: to include modules that implement an optimized, streamlized DOM. It would be a shame to confuse things with SVG::Graph. What do we do when we want to implement an SVG.pm-based

Re: perl and marketing

2003-08-19 Thread Robin Berjon
Dave Cross wrote: I'm sure I did stuff in different bases pretty early on in school. In fact, I _know_ that we much have at least touched on base 12 so that we could deal with the monetary system[1]. In France I remember doing bases 12, 24 and 60 quite young. I'll let you figure out for what it wa

Re: perl and marketing

2003-08-19 Thread Chris Benson
On Tue, Aug 19, 2003 at 11:53:42AM +0100, Andy Wardley wrote: > Merijn wrote: > > I was very impressed one day when I learned that kids on Holland > > nowadays learn about the land of Oct in primary school, age 9-10. > > Me too! > > I was telling my wife about this just the other day. I was in

Re: perl and marketing

2003-08-19 Thread Dave Cross
From: Merijn Broeren <[EMAIL PROTECTED]> Date: 8/19/03 8:53:49 AM > I was very impressed one day when I learned that kids on > Holland nowadays learn about the land of Oct in primary > school, age 9-10. Where the people only count to 7. So > they learn counting 0..7, oct, oct plus one, etc. Wh

Re: perl and marketing

2003-08-19 Thread Paul Makepeace
On Tue, Aug 19, 2003 at 12:16:31PM +0100, Chris Bannister wrote: > I remeber being taught about conversion to and from HEX, Binary and > Octal during my last year or so at Primary school. I'm sure our end of > term production even included people who counted in a different base. > > Still remem

Re: SVG::Graph - online first draft

2003-08-19 Thread Robin Berjon
Leo Lapworth wrote: I've found that batik (http://xml.apache.org/batik/) converts SVG to PNG very well, all the Perl (ImageMagick for example) conversions don't give you anything like the quality (loose a lot of the style sheet info) of the origional. Yes, Batik has by far the best rendering that

Re: hash lookup with regex

2003-08-19 Thread Andy Ford
You could cast them both to arrays and use the perl module Algorithm::Diff to calculate the differences between them. This will check if the entry is in array1 and not in array2 and vice-versa - wonderful Andy On Tue, 2003-08-19 at 12:31, Martin Bower wrote: > apologies for perl content :-) >

Re: Exporting Symbols

2003-08-19 Thread Dominic Mitchell
On Mon, 18 Aug 2003 19:49:42 -0400, Dan Sugalski <[EMAIL PROTECTED]> wrote: > He's incorrect. Symbols only take up space when they're imported, not > when they're made available for export. If the name being imported > doesn't exist in the importer's namespace in any form (which is to > say, if

Re: SVG::Graph..

2003-08-19 Thread ronan
Quoting Andy Wardley <[EMAIL PROTECTED]>: > At present the Template::* namespace is effectively reserved[*] for the > Template Toolkit. I plan to change that in version 3 to allow it to > be opened up for other templating modules. However, that will take > careful planning to avoid trampling on

hash lookup with regex

2003-08-19 Thread Martin Bower
apologies for perl content :-) I have 2 hashes, one with 10,000 entries and the other with 5,000, and these are loaded from a database table(sybase). %hash1 contains values such as "111.666.fff.jjj.ccc.222" %hash2 contains values such as "111.666.fff.___.ccc.222" (where the ___ can eixst

Re: perl and marketing

2003-08-19 Thread Chris Bannister
Andy Wardley wrote: Merijn wrote: I was very impressed one day when I learned that kids on Holland nowadays learn about the land of Oct in primary school, age 9-10. Me too! Me three I remeber being taught about conversion to and from HEX, Binary and Octal during my last year or so at Primar

Re: [OT] Decompiling perl2exe apps

2003-08-19 Thread Marcel Gruenauer
On Fri, Aug 15, 2003 at 12:46:44PM +0100, James Campbell wrote: > I have managed to lose some source code (ahem) for a script that I packaged > with perl2exe on a Windows 2000 PC. One of the better arguments against perl2exe and its ilk. > I have seen a few hints that perl2exe > applications can

Re: Bra

2003-08-19 Thread Marcel Gruenauer
On Fri, Aug 15, 2003 at 11:55:39PM +1000, Andrew Savige wrote: > Victoria Bra, Secret Tango (2003) > = > > L.A.B. Brocard 1976- > > This, the third work in Brocard's acclaimed "Orange" sequence, [deletia] > This work is extremely fragile. Please do not touch. Mag

Re: perl and marketing

2003-08-19 Thread Andy Wardley
Merijn wrote: > I was very impressed one day when I learned that kids on Holland > nowadays learn about the land of Oct in primary school, age 9-10. Me too! I was telling my wife about this just the other day. I was in the last year of junior school so also must have been about 9. Our teache

Re: Bra

2003-08-19 Thread Marcel Gruenauer
On Fri, Aug 15, 2003 at 04:05:22PM +0100, Nicholas Clark wrote: > This counts as "art" rather than debauchery? On the basis that debauchery > is frowned on at social meetings? /me smells a "what is art?" debate coming on... Marcel -- We are Perl. Your table will be assimilated. Your waiter wil

Re: SVG::Graph - online first draft

2003-08-19 Thread Leo Lapworth
On Tue, Aug 19, 2003 at 12:18:22PM +0200, Robin Berjon wrote: > >http://leo.cuckoo.org/projects/SVG-Graph/examples/ > > Very nice :) I am right now working on a long series of benchmarks, which > need to be presented in SVG and PNG. You are saving me from having to write > this module ;) Great

Re: Exporting from .mdb Access files

2003-08-19 Thread Marcel Gruenauer
On Thu, Aug 14, 2003 at 03:01:18AM +0100, Paul Makepeace wrote: > Are there any free tools for extracting tables etc from MS Access > databases? I'm not looking for ODBC connections to Access installations, > rather actual parsing+dumping tools so I can re-import into say Pg. > Closest I've found

Re: IPC::Shareable: fixed

2003-08-19 Thread Andy Ford
This is just in case someone is reading this post through interest!! I have sorted where the problem is. If you are interested, please read on... The program I wrote was the following... - snip - my %myhash; tie %myhash, 'IPC::Shareable', "hashkey", {create => 1, exclusive =

Re: SVG::Graph - online first draft

2003-08-19 Thread Robin Berjon
Leo Lapworth wrote: With some example results at: http://leo.cuckoo.org/projects/SVG-Graph/examples/ Very nice :) I am right now working on a long series of benchmarks, which need to be presented in SVG and PNG. You are saving me from having to write this module ;) This shows the line graph, we

Re: Extending Other Packages

2003-08-19 Thread Peter Haworth
On Sun, 17 Aug 2003 18:29:01 +0100, Nigel Rantor wrote: > Mark Fowler wrote: > > You shouldn't. Really. You should subclass the other method. > > Well, I agree, but I also wanted to get on to the multiple inheritence > angle to see what you lot thought about it. So in a sense, I would like to > for

Re: OSX - 'the real question'

2003-08-19 Thread Chris Heathcote
On Monday, August 18, 2003, at 11:16 pm, Chris Devers wrote: Alternatively, you may prefer to just follow David Wheeler's instructions for this kind of thing at . There's a good guide to installing 5.8.0 at: http://developer.apple.com/internet/macosx/perl.html

Re: Exporting Symbols

2003-08-19 Thread Dan Sugalski
At 7:11 PM +0100 8/17/03, Nigel Rantor wrote: So, I've been talking to someone about a module they wrote. The modules do not export symbols even though the whole point of the module is to define some subs for you to be able to use. His rationale for not exporting symbols is because it 'eats up a

Re: OSX - 'the real question'

2003-08-19 Thread David Wright
Once you've got the developer's tools installed, you have everything you need to upgrade Perl. However, you may want to try the Fink package manager, which is based on Debian's dpkg/apt-get/dselect toolkit. If you install Fink, then installing Perl 5.8.0 is just a matter of running sudo fink

Re: OSX - 'the real question'

2003-08-19 Thread muppet
On Monday, August 18, 2003, at 05:50 PM, Alex Brewer wrote: The real question was why the STDOUT doesn't appear in the terminal window, so the famous 'hello world' script runs OK but puts the output somewhere else. I can pipe it to a second script to put the output in a file but that's no use

Re: perl and marketing

2003-08-19 Thread Sam Vilain
and while writing this mail I searched for LOGO a bit and found this site about YoYo - Java for kids. http://lcs.www.media.mit.edu/groups/el/projects/bongo/ Sheesh, that's like feeding your kids arsenic or raw sugar! -- Sam Vilain, [EMAIL PROTECTED] Real computer scientists don't wr

Re: perl and marketing

2003-08-19 Thread Merijn Broeren
Quoting Elaine -HFB- Ashton ([EMAIL PROTECTED]): > > Just like MIT to overengineer something :) If little kids in Finland can > master Finnish, Swedish and English by the time they are 10, a programming > language surely couldn't be that big of a deal. Learning Finnish much, > much later in life

SVG::Graph - online first draft

2003-08-19 Thread Leo Lapworth
Hi again all... I'm still going for the SVG::Graph name space, unless someone can convince me otherwise (I'm quite happy to change it, but to me it does seem to fit). There seemed to be a bit of confusion over what the module was so I've thrown together the first version and put it up for your pe

Re: Bottom End Contractor Rates

2003-08-19 Thread Alex McLintock
At 20:07 18/08/03, Greg wrote: Someone has just posted a 3k/mth job for 3mths to this list, and while getting paid anything is better than being on the dole, I nearly applied for this work, but didn't just because of the low rate. I can't be bothered to argue with the original poster but I think