Re: YAPC::EU travel plans

2014-07-22 Thread Paul "LeoNerd" Evans
On Tue, 22 Jul 2014 06:31:57 +0100 Dave Cross wrote: > You know that the same flight number flies on different days? :-) Huh. I always thought that a flight number always mapped to a given day of the week as well? But perhaps not... -- Paul "LeoNerd" Evans leon...@leoner

Re: YAPC::EU travel plans

2014-07-21 Thread Paul "LeoNerd" Evans
flights as you; BA0890 + BA0819 but you've entered it in Wednesday on the Arrivals, and myself and Léon have put Thursday - you might want to double-check yours. -- Paul "LeoNerd" Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS s

YAPC::EU travel plans

2014-07-21 Thread Paul "LeoNerd" Evans
in a group who knows the route/place a little better... -- Paul "LeoNerd" Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS signature.asc Description: PGP signature

Re: Evaluating user-defined conditions

2014-06-09 Thread Paul "LeoNerd" Evans
st want > basic arithmetic and placeholders. Otherwise, I can recommend > Parse::RecDescent. Parser::MGC will also let you build quite a simple expression evaluator. For example, see this one that just does +-*/ on integers: https://metacpan.org/source/PEVANS/Parser-MGC-0.12/examples/eval-expr.

Re: [ANNOUNCE] London.pm Dim Sum, Wednesday 3rd March, Docklands

2014-03-03 Thread Paul "LeoNerd" Evans
On Mon, 3 Mar 2014 21:45:53 + Tom Hukins wrote: > Subject: [ANNOUNCE] London.pm Dim Sum, Wednesday 3rd March, Docklands Shome mishtake shurely? Perhaps you mean Wednesday 5th? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux

Re: Perl 6 what can you do today

2014-02-07 Thread Paul "LeoNerd" Evans
day... <.< >.> -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

FOSDEM trip / accomodation / etc...

2014-01-20 Thread Paul &quot;LeoNerd&quot; Evans
d someone local who I might drop in on, or else consider how early I could travel on Saturday morning, to at least avoid staying Fri->Sat there. Any thoughts? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ si

Re: Google +

2011-07-22 Thread Paul LeoNerd Evans
rt of crap. When anyone ever abuses references headers like this, I just hit # and hey presto - new thread. :) -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Perl and IPv6. It's alright now.

2011-04-26 Thread Paul LeoNerd Evans
is out, I'm hoping to suggest placing IO::Socket::IP in core too, alongside the older ::INET. HTH, -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Perl T-shirts

2010-02-26 Thread Paul LeoNerd Evans
kgeek/cafepress/etc..)? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: No more IP for you

2010-01-21 Thread Paul LeoNerd Evans
lit a prefix you gain no new actually-usable "addresses" but gain another entry that every internet router in the world has to know about. -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: No more IP for you

2010-01-20 Thread Paul LeoNerd Evans
ress, pack prefix length and next hop ID in a single byte), that's still 15MB. More likely it'll take much more space than that.. possibly more than the, say, 64MB that smaller Cisco routing boxes come with. That's every internet-BGP-talking box in the world, has to have that table.

Re: The bar receipt for Saturday night...

2009-12-09 Thread Paul LeoNerd Evans
On Wed, 9 Dec 2009 07:11:44 +0100 Philip Newton wrote: > 2009/12/9 Andrew Black : > > people are getting a bit pentiumed up > > Well, I amd expecting a bit of intel-ligence. Cyrixously now. Sun may say we've gone too far... -- Paul "LeoNerd" Evans leon.

Pre-LPW drinks

2009-11-25 Thread Paul LeoNerd Evans
I'm planning to attend LPW, which will be my first such attendance. Is there any likelyhood of some sort of pub meetup perhaps, the day before? A chance to get to see a few faces beforehand? If not, I propose that there ought to be... Any takers on that idea? -- Paul "LeoNerd&qu

Re: Regexp capture group list

2009-11-10 Thread Paul LeoNerd Evans
(appols for semi-duplicate) On Tue, Nov 10, 2009 at 03:11:04PM +0100, Philip Newton wrote: > On Tue, Nov 10, 2009 at 14:51, Paul LeoNerd Evans > wrote: > > So how about > > > >  my @matches = $_[0] =~ m/^$re/ or die ; > >  substr( $_[0], 0, $+[0] ) = "&qu

Re: Regexp capture group list

2009-11-10 Thread Paul LeoNerd Evans
On Tue, Nov 10, 2009 at 03:11:04PM +0100, Philip Newton wrote: > On Tue, Nov 10, 2009 at 14:51, Paul LeoNerd Evans > wrote: > > So how about > > > >  my @matches = $_[0] =~ m/^$re/ or die ; > >  substr( $_[0], 0, $+[0] ) = ""; > > > >  retu

Re: Regexp capture group list

2009-11-10 Thread Paul LeoNerd Evans
er the match in m// then cut of matching prefix idea, as suggested by Philip Newton.. -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Regexp capture group list

2009-11-10 Thread Paul LeoNerd Evans
es = $_[0] =~ m/^$re/ or die ; substr( $_[0], 0, $+[0] ) = ""; return @matches; I think I like that... -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Regexp capture group list

2009-11-10 Thread Paul LeoNerd Evans
haps there's a neater solution - I find there's no @{^MATCHGROUPS} or similar present in perl... Can anyone offer any neater suggestions? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Perl linked list segfault

2009-11-04 Thread Paul LeoNerd Evans
getting overflowed somewhere? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Straight Jackets and Video Cameras

2009-07-31 Thread Paul LeoNerd Evans
first one): I thought he was? (A fourth appears): Yes, I am. (Perl looks beyond this person to see a long queue of others, stretching as far as his eye can see...) -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: system() with timeout

2009-04-16 Thread Paul LeoNerd Evans
On Thu, Apr 16, 2009 at 06:18:45PM +0100, David Cantrell wrote: > Anyone recommend a module to give me something like system(@list) but > with a timeout? Does IPC::Run have something suitable? I seem to recall it has quite a lot of interesting things to fiddle with... -- Paul "Leo

Re: Best pick for time-based 'event' looping?

2009-04-16 Thread Paul LeoNerd Evans
::Loop; my $loop = IO::Async::Loop->new(); sub take_over_world { print "Same thing we do every day Pinky...\n"; $loop->enqueue_timer( delay => 3, # in seconds code => sub { take_over_world() }, ); } take_over_world(); $loop->loop_forever; -- P

Re: ExtUtils::Installed vs pminst vs?

2009-04-06 Thread Paul LeoNerd Evans
On Thu, Apr 02, 2009 at 11:42:32AM +0100, Paul LeoNerd Evans wrote: > On Tue, 31 Mar 2009 19:26:37 +0100 > Matt Lawrence wrote: > > > Module::Util will do this for you: > > A surprisingly-useful looking module. I wonder why I haven't come across > this one before

Re: ExtUtils::Installed vs pminst vs?

2009-04-02 Thread Paul LeoNerd Evans
ut? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: File permission vulnerabilities and Module::Pluggable

2009-01-25 Thread Paul LeoNerd Evans
my /usr/share/perl/5.10/strict.pm is world-writable, say, then I'm already dead way before Module::Pluggable gets to run. Incidentally, what you're looking for is called TPE; Trusted Path Execution. The GRSecurity Linux Kernel patch has such an option for exec() and friend

Re: Testing network apps

2009-01-25 Thread Paul LeoNerd Evans
nts from: http://search.cpan.org/author/PEVANS/IPC-PerlSSH-0.10/lib/IPC/PerlSSH.pm Also for nonblock/async stuff: http://search.cpan.org/author/PEVANS/IPC-PerlSSH-Async-0.03/lib/IPC/PerlSSH/Async.pm -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Regi

Re: Perl Christmas Quiz

2008-12-18 Thread Paul LeoNerd Evans
On Wed, 17 Dec 2008 20:54:40 +0100 "Philip Newton" wrote: > On Thu, Dec 18, 2008 at 02:47, Torsten Knorr wrote: > > Who is Haiku? > > Not who; what. > > http://de.wikipedia.org/wiki/Haiku Or maybe you'll find http://en.wikipedia.org/wiki/Haiku more useful

Re: Perl Christmas Quiz

2008-12-16 Thread Paul LeoNerd Evans
On Mon, 15 Dec 2008 19:28:05 UT "Torsten Knorr" wrote: > Let them use other languages. > We can improving it with Perl. > In addition we are more flexible. Soo close to Haiku: Let them use others We can improve it with Perl We're more flexible -- Pa

Regexps in 5.11 [was Re: Perl Christmas Quiz]

2008-12-16 Thread Paul LeoNerd Evans
ve to get to the bottom of it. Do you know any writings or authoritative source on the changes? -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Perl Christmas Quiz

2008-12-16 Thread Paul LeoNerd Evans
123 or 45.6 reference: [your list above] GLOB -- Paul "LeoNerd" Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Perl's lack of 'in' keyword

2008-10-08 Thread Paul LeoNerd Evans
On Thu, 9 Oct 2008 00:49:15 +0100 Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote: > my $foo = $a + $b; > > I suppose you'd suggest this can be written > > my scalar foo is scalar a add scalar b end statement I suppose this is a little unfair, since my brain is sorto

Re: Perl's lack of 'in' keyword

2008-10-08 Thread Paul LeoNerd Evans
as they're barewords. That's why 5.10 has the 'use feature' pragma for switch/etc... I suppose you could use feature qw( in ); but then does it really buy all that much? -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460

Re: Perl's lack of 'in' keyword

2008-10-08 Thread Paul LeoNerd Evans
is scalar a add scalar b end statement and somehow that is more readable?? As the previous poster said; if you wanted COBOL you know where to find it. "ADD 1 TO COBOL GIVING COBOL" and so on... One of the things _I_ like about Perl is that it accepts the fact that larger alphabets yield sho

Re: [OT] What's my name?

2008-10-07 Thread Paul LeoNerd Evans
s %{$pkg."::"}; } print "The sub is called: " . join( " ", @names ) . "\n"; Gives The sub is called: Some::Pkg::bar Some::Pkg::foo Some::Pkg::splot > caller gives __ANON__, because, after all, that was the name the subroutine > had when it was co

Re: POSIX:_exit($status)

2008-10-06 Thread Paul LeoNerd Evans
sues (eg. MSWin32), but an interesting alternative if you don't mind the performance being sub-optimal might also be exec( $^X, "-e", "exit $status" ); -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
On Fri, 12 Sep 2008 00:48:06 +0100 Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote: > binmode STDOUT, ":utf8" if grep m/utf-?8/i, @ENV{qw(LANG LC_MESSAGES > LC_ALL)}; > > And even then I'm not sure it's right. Actually it's still not... We have to take

Re: Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
ot sure it's right. Which really just proves my point... The -C...L flag _already_ implements the correct logic. It's just not useful as it is... -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
-C just call binmode itself? This is getting stupider by the moment. I've even tried this; it JustWorks: #!/usr/bin/perl BEGIN { exec $^X, "-COL", "-f", $0, @ARGV unless ${^UNICODE} } print "Hello w\xe9rld\n"; $ ./test-unicode.pl Hello wérld -

Re: Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
ow.. Surely there must be _some_ way to make -C not useless? Hell, even this might work: #!/usr/bin/perl BEGIN { exec $^X, "-C", @ARGV unless ${^UNICODE} } -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
o 48 2008-09-11 13:51 test.pl $ cat test.pl #!/usr/bin/perl -COL print "Hello w\xe9rld\n"; $ ./test.pl Too late for "-COL" option at ./test.pl line 1. By the way, this is perl 5.10. I think it used to work on 5.8.8. Perl version? -- Paul "LeoNerd" Evan

Is -C useless?

2008-09-11 Thread Paul LeoNerd Evans
r that -COL is supposed to provide; and yet is "too late" by the shebang time.. Yet, clearly not because I can do it even later at runtime. Can anyone offer any insight here? -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: svk v git + possible gig

2008-09-09 Thread Paul LeoNerd Evans
are should start using that instead where it can. It really whips the pants off the slow fork()+exec() implementation in cygwin. In fact, if just bash used it I'm sure already you'd notice an improvement. Oh and at this point I'd like to wave bzr in the svk v git discussion :) -- P