Re: Mr. Brocard database tools in focus

2003-08-21 Thread Belden Lyman
Andy Wardley wrote: Luis Campos de Carvalho wrote: Could you please teach me about your data-{storage,classification,retrieval,maintenance} tools? Leon has invented a trans-dimensional organic memory jelly made of purest orange. It also spreads quite nicely and tastes yummy on a biscuit!

[OT] submitting a perl bug without ``perlbug''?

2003-08-14 Thread Belden Lyman
Howdy, A few months back I encountered a switch ordering bug with Perl 5.6.1 and 5.8 on Solaris. (-w -T on #! line doesn't work; -T -w does work, as do -wT and -Tw.) I wasn't able to 'perlbug' it at the time, and am still unable to do so. On occassion, I remember the bug and wish there were some w

Re: regexps

2003-07-18 Thread Belden Lyman
Mark Fowler wrote: On Fri, 18 Jul 2003, Chisel Wright wrote: On Fri, Jul 18, 2003 at 04:44:10PM +0100, Joel Bernstein wrote: Helps a bit, but I'd like to pronounce the title of this article please: http://www.perl.com/pub/a/2003/07/01/regexps.html "Power Regular Expressions, Part Two" Mark

Re: regexps

2003-07-18 Thread Belden Lyman
Chisel Wright wrote: Just how you you pronounce 'regexps'? Personally I don't because I keep tripping over my tongue. Is it "r-egg-eckps", "rej-eckps" or something more pronouncable? Inquiring monds want to know. It's a psilent 'p'.

Re: list all installed perl modules

2003-07-02 Thread Belden Lyman
Paul Makepeace wrote: On Thu, Jul 03, 2003 at 12:36:29AM +, Andy Ford wrote: What is an easy way to find all installed perl modules perldoc perllocal P Some modules overwrite perllocal rather than appending. Funny that I have a short list yet haven't contacted authors... Belden

Re: weird eval

2003-05-29 Thread Belden Lyman
Nick Cleaton wrote: On Wed, May 28, 2003 at 05:41:49PM +0100, Ben wrote: What circumstances are there under which eval {}; will not trap a program exit ? eval { exit }; Similarly: eval { exec perl => -e1 }; Belden

Re: Perl 6 Apocalypse 6

2003-03-12 Thread Belden Lyman
Adrian Howard wrote: Hiya, There is also the fact that all of the new stuff is optional. You can still do: sub double { map { $_ * 2} @_ }; if you want. You don't have to use the new stuff unless you need it. (maybe there should be a new perl6 acronym - YDHTUYWT - You Don't Have To Unle

Re: Perl 6 Apocalypse 6

2003-03-11 Thread Belden Lyman
Paul Makepeace wrote: On Tue, Mar 11, 2003 at 12:32:02PM +, Greg McCarroll wrote: e) A chance to get rid of the poor reputation Perl has with some people. IMO, this is very unlikely to happen without a name change. #!/usr/bin/lepr ?? Belden

Re: referenced types

2003-03-10 Thread Belden Lyman
Randy J. Ray wrote: eg. How would I code this: sub foo { my $ref = shift; die unless ($ref is an array pointer); } die unless ($ref eq 'ARRAY'); The built-in types are SCALAR, ARRAY, HASH, CODE, GLOB and (according to the ref() docs in perlfunc) LVALUE. Also, if the reference is

Re: get/put or read/write

2003-02-24 Thread Belden Lyman
Nicholas Clark wrote: On Mon, Feb 24, 2003 at 10:59:21AM +, Simon Wistow wrote: I could change it to ==1234 or == 12345678 or to =~ m!^1234! =~ m!^1234(?:5678)$! would feel more defensive to me, but I prefer the == 1234 or == 12345678 Any reason why (?:5678) isn't optional? =~ m!^12

Re: Collapsing paths

2002-12-12 Thread Belden Lyman
Graham Barr wrote: On Thu, Dec 12, 2002 at 06:07:36PM +, Simon Wilcox wrote: I can't find anything on the CPAN but I can't believe this module doesn't exist : I have a path, say "dira/dirb/../dirc/file" and I want to collapse it to a canonical path "dira/dirc/file". I also need to de

Re: Perl Merchandise

2002-12-10 Thread Belden Lyman
Dave Cross wrote: I wonder how many women will be asking for this for Christmas I wonder how many monger-wives will be receiving it anyway ;)

Re: Perl and Time zones.

2002-12-09 Thread Belden Lyman
Paul Mison wrote: On 09/12/2002 at 21:43 +, Tamsin wrote: Beware. I believe one US state (Montana IIRC) also stands out by only partially adopting daylight saving time. ie half of Montana does, half does not. Or maybe this is what you meant by the above comment. Montana seems to be mos

Comparing Arrays [was: Re: (no subject) ]

2002-11-08 Thread Belden Lyman
Kevin Gurney wrote: Anyone able to shed some light on how i can compare 2 arrays. I've tried ==, and this don't seem to work. Nothing obvious in the cookbook either. Please help. Kevin Gurney See Recipe 4.8, "Computing Union, Intersection, or Differences in Unique Lists." See also, D

Re: *****(not) SPAM***** RFC: Acme::Whatif

2002-10-17 Thread Belden Lyman
Steve Keay wrote: Wow, first spamassasin false positive from london.pm: X-Spam-Report: 5.9 hits, 4.8 required; * 0.5 -- To: repeats local-part as real name * 1.1 -- BODY: A word in all caps repeated on the line * 4.3 -- BODY: Offers a limited time offer Did spamass

Re: RE efficiency question.

2002-10-17 Thread Belden Lyman
Shevek wrote: On Thu, 17 Oct 2002, Belden Lyman wrote: Kevin Gurney wrote: P.S If anyone feels so inclined, a better way of matching the numbers would be most appreciated as I'm simply picking everything in a 12 char range each time. In the interest of more than one way, h

Re: RE efficiency question.

2002-10-17 Thread Belden Lyman
Graham Barr wrote: On Thu, Oct 17, 2002 at 09:37:11PM +0100, Shevek wrote: On Thu, 17 Oct 2002, Belden Lyman wrote: pos($_) = 9; # skip first 9 chars push @ext, $1 while /(.{12})/g; No need for the while. pos($_) = 9; # skip first 9 chars push @ext, /.{12}/g; You're righ

Re: RE efficiency question.

2002-10-17 Thread Belden Lyman
Kevin Gurney wrote: P.S If anyone feels so inclined, a better way of matching the numbers would be most appreciated as I'm simply picking everything in a 12 char range each time. In the interest of more than one way, here's something else: pos($_) = 9; # skip first 9 chars push @ext,

Re: similarity detection

2002-10-09 Thread Belden Lyman
Chris Devers wrote: > On Tue, 8 Oct 2002, Tim Sweetman wrote: > > >>Well, sort of - search engines find documents to fit certain criteria; >>this tries to find documents similar to other documents. >> > > Arguably part of the same problem space though. I don't know where you can > find them a