On Fri, Feb 22, 2002 at 09:20:56PM +, Chris Benson wrote:
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real
regexps?
/(\+44\s+|0)20\D[78]\d{3}\D\d{4}\b/
phone numbers, CC numbers, ... all
On Fri, Feb 22, 2002 at 09:20:56PM +, Chris Benson wrote:
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real
regexps?
phone numbers, CC numbers, ... all the time :-(
Ahh, so *you're* the one who
On Fri, Feb 22, 2002 at 09:42:53PM +, David Cantrell wrote:
On Fri, Feb 22, 2002 at 09:20:56PM +, Chris Benson wrote:
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real
regexps?
phone
On Fri, 2002-02-22 at 16:42, David Cantrell wrote:
On Fri, Feb 22, 2002 at 09:20:56PM +, Chris Benson wrote:
phone numbers, CC numbers, ... all the time :-(
Ahh, so *you're* the one who rejects one of my credit cards* cos it has the
wrong number of digits :-)
In the US you can never
I have a slow perl script that is currently annoying me.
I have run it under Devel::DProf, and from that have already identified 2
places where it could be accelerated.
[4.5% by replacing explicit loops with join ,, upack C*, $foo
7.5% by replacing recursion with a loop]
However, I think I'm
On Tue, 19 Feb 2002, Nicholas Clark wrote:
I have a slow perl script that is currently annoying me.
I have run it under Devel::DProf, and from that have already identified 2
places where it could be accelerated.
[4.5% by replacing explicit loops with join ,, upack C*, $foo
7.5% by
On Tue, Feb 19, 2002 at 02:22:09PM +, Jonathan Stowe wrote:
Build the Perl with the gcc option -pg and then run gprof, and then get
jiggy in pp_hot.c ;-}
Mmm. Not tried that. I did try using gcov a while back, and found that if I
re-ordered the switch statement in rexexec the regression
On Tue, Feb 19, 2002 at 01:05:29PM +, Nicholas Clark wrote:
However, I think I'm at the limit of things I can learn from DProf.
What other techniques can I use to figure out where and why it is slow?
Devel::Cover now does time coverage, aka profiling. It's pretty basic
and pretty new,
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
However perlbench went slower because I'd made
/(.{1,76})/ slower (used in string/base64.t). How many people use {} in real
regexps? IIRC There are almost none in any script used to build perl.
I
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real regexps?
s/(.{1,72})(\s+|$)/$1\n /g;
(Wordwrap for my sigs.)
Paul
--
Paul Makepeace ... http://paulm.com/
What is Clark Kent without a telephone booth? Another
On Tue, Feb 19, 2002 at 10:05:36AM -0800, Paul Makepeace wrote:
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real regexps?
s/(.{1,72})(\s+|$)/$1\n /g;
(Wordwrap for my sigs.)
D'oh!
$definition =~ s/(.{74,77},)/$1\n/g;
That bit of
There must be easier ways than this :-)
why don't you just throw hardware at the problem? :)
z
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
How many people use {} in real regexps? IIRC There are almost none
in any script used to build perl.
I've used it quite often for validating input, for example to check
the user entered a number containing x and y digits/letters.
On Tue, Feb 19, 2002 at 07:15:03PM +, jo walsh wrote:
There must be easier ways than this :-)
why don't you just throw hardware at the problem? :)
Because there's this little label on it marked product warranty will be
void if label on the top cover is removed or if the drive
On Tue, 19 Feb 2002, Richard Clamp wrote:
On Tue, Feb 19, 2002 at 03:31:17PM +, Nicholas Clark wrote:
However perlbench went slower because I'd made
/(.{1,76})/ slower (used in string/base64.t). How many people use {} in real
regexps? IIRC There are
On Tue, 19 Feb 2002, jo walsh wrote:
There must be easier ways than this :-)
why don't you just throw hardware at the problem? :)
Yeah, lets hand out loads of kit to early adopters of Perl 5.8.0 :)
/J\
16 matches
Mail list logo