rt.cpan.org is going away

2021-01-21 Thread Paul "LeoNerd" Evans
an.rocks/; because metacpan.org defaults to RT in the latter case. 2: https://log.perl.org/2020/12/rtcpanorg-sunset.html -- Paul "LeoNerd" Evans leon...@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd

Re: Extending Proc::ProcessTable::Process with number of file opened and Naming a new package

2020-08-22 Thread Paul "LeoNerd" Evans
some other Prometheus client libs for other langauges, and see if they have any OpenBSD support. Try to copy what they do - different language clients on the same OS should act the same. Maybe also try asking in #prometheus on Freenode. -- Paul "LeoNerd" Evans leon...@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/ pgpWxN47d_z9i.pgp Description: OpenPGP digital signature

Re: Module heirarchy naming for SPI/I²C device drivers

2015-10-22 Thread Paul "LeoNerd" Evans
ate, FT232H, Raspberry Pi GPIO, etc...) would necessarily warrant a dedicated space too; they become the consumers of these chips, much like my existing Device::BusPirate currently consumes chips within its space. -- Paul "LeoNerd" Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ |

Re: Module heirarchy naming for SPI/I²C device drivers

2015-10-22 Thread Paul "LeoNerd" Evans
see a way to avoid the usual problem with someone releasing > Bus::I2C::EEPROM::Lite and Bus::I2C::EEPROM::Tiny after the first come > module gets bloated out with obsolete parts. Eh... That's a standard problem across the whole of CPAN. We usually cope fairly well... :) -- Paul "LeoNerd&q

Module heirarchy naming for SPI/I²C device drivers

2015-10-21 Thread Paul "LeoNerd" Evans
ically attach it. But lets start with the name... -- Paul "LeoNerd" Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS pgpszjNsQ2giD.pgp Description: OpenPGP digital signature

Seeking a suitable forum to discuss Scalar/List::Util

2015-05-14 Thread Paul LeoNerd Evans
in it. Partly I might just suggest these two lists, unless people on either list object to the traffic. I dunno... thoughts anyone? -- Paul LeoNerd Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS pgpmgleRIaLV4.pgp Description: OpenPGP digital signature

Re: Seeking a suitable forum to discuss Scalar/List::Util

2015-05-14 Thread Paul LeoNerd Evans
://search.cpan.org/~pevans/Scalar-List-Utils-1.42/lib/List/Util.pm Ummm... Have I tried contacting... myself? ;) -- Paul LeoNerd Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS pgp4uRjukei5V.pgp Description: OpenPGP digital signature

=head1 SEEN ALSO BY

2015-03-31 Thread Paul LeoNerd Evans
then such a module declaring that would *automatically* get listed somehow in some automatically-generated and (near)-realtime updated part of the Tickit documentation when viewed via metacpan. Does this sound like something that might gain traction? -- Paul LeoNerd Evans leon...@leonerd.org.uk

Module for making bitfields

2014-09-24 Thread Paul LeoNerd Evans
a range of bits that give an enumeration. I guess also would be required intfield() to use a range of bits as an integer, and finally most likely customfield() taking a pair of conversion CODE refs or somesuch. What does anyone think to that? -- Paul LeoNerd Evans leon...@leonerd.org.uk http

Re: Module for making bitfields

2014-09-24 Thread Paul LeoNerd Evans
I have here. E.g. see the 'CRCO' field. Additionally though, I do like the Data:: namespace - I should probably name mine Data::Bitfield, rather than the lowercase 'bitfield'. -- Paul LeoNerd Evans leon...@leonerd.org.uk http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS

Re: Aliens depending on Aliens

2014-01-09 Thread Paul LeoNerd Evans
the format might generate. This is starting to sound worse... -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/

Re: Aliens depending on Aliens

2014-01-09 Thread Paul LeoNerd Evans
-config itself. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Aliens depending on Aliens

2014-01-06 Thread Paul LeoNerd Evans
that this requirement that non-root users be able to install C libraries into non-system standard places is getting problematic. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Aliens depending on Aliens

2014-01-06 Thread Paul LeoNerd Evans
those two things, it won't be sufficient to simply set the PKG_CONFIG_PATH. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/

Re: Aliens depending on Aliens

2014-01-06 Thread Paul LeoNerd Evans
... I don't follow how this helps. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/

Re: Aliens depending on Aliens

2014-01-06 Thread Paul LeoNerd Evans
dependencies. Unless I have missed something - how does anyone else do this? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/

Re: Aliens depending on Aliens

2014-01-06 Thread Paul LeoNerd Evans
file when it installs, other than the one the original library actually supplied. That feels wrong to me. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/

Re: RFC: Time::mkgmtime

2012-07-09 Thread Paul LeoNerd Evans
On Thu, Jun 14, 2012 at 02:05:54PM +0100, Paul LeoNerd Evans wrote: I am hesitant to upload this to CPAN, because -srely- something like it already exists. I can't seem to find it though. ... I specifically make note of two facts: 1) This module specifically handles denormalised values

Re: RFC: Time::mkgmtime

2012-07-09 Thread Paul LeoNerd Evans
. Yes, I'm aware that currently it appears to work, but the documentation does state it specifically is undefined what happens when you do that. So I don't want to rely on things the documentation says I shouldn't rely on, even if the current implementation makes it OK. -- Paul LeoNerd Evans leon

Re: Win32 event loop and threading framework

2012-06-14 Thread Paul LeoNerd Evans
on this... ) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

RFC: Time::mkgmtime

2012-06-14 Thread Paul LeoNerd Evans
at an existing implementation of this, I'll use that instead of uploading this one. But so far I can't find one, yet it confuses me that such should still not exist yet. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk

Re: RFC: Time::mkgmtime

2012-06-14 Thread Paul LeoNerd Evans
On Thu, Jun 14, 2012 at 04:21:14PM +0200, Philippe Bruhat (BooK) wrote: On Thu, Jun 14, 2012 at 02:05:54PM +0100, Paul LeoNerd Evans wrote: I am hesitant to upload this to CPAN, because -srely- something like it already exists. I can't seem to find it though. - Time::mkgmtime(3

Re: RFC: Time::mkgmtime

2012-06-14 Thread Paul LeoNerd Evans
On Thu, Jun 14, 2012 at 05:13:04PM +0100, Paul LeoNerd Evans wrote: Time::Local complains about out-of-range values. It cannot do 25th hour or -3rd day or whatever. Time::mkgmtime specifically allows these, the same way POSIX::mktime() does. To wit, the -3rd hour of the 12th June 2012: $ perl

Re: Proposal: IO::Termios

2011-05-26 Thread Paul LeoNerd Evans
On Mon, May 23, 2011 at 08:05:18PM +0100, Paul LeoNerd Evans wrote: I've been getting annoyed lately at the awkward and insane steps required to go through just to get a serial device On Wed, May 25, 2011 at 11:21:50PM +0200, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 wrote: I've missed something totally nonobvious

Re: Proposal: IO::Termios

2011-05-25 Thread Paul LeoNerd Evans
from Socket. I'm doing the same for TTYs... use IO::Termios -upgrade; STDIN-setflag_echo( 0 ); my $password = STDIN; STDIN-setflag_echo( 1 ); Such as this. Sure you -can- do that with the other modules, but this makes it much more convenient. -- Paul LeoNerd Evans leon

Proposal: IO::Termios

2011-05-23 Thread Paul LeoNerd Evans
); * Some sort of combined baud/csize/parity/stop getting/setting method $term-setline( 38400,8,n,1 ); I'd appreciate comments on the general approach; if anyone thinks it might be useful, or if I've missed something totally nonobvious on CPAN/etc... before I upload it. -- Paul LeoNerd

Module Naming Suggestion - Carp from somewhere else

2011-03-05 Thread Paul LeoNerd Evans
, and not specific to CPS. I think it ought to live in its own module somewhere - any ideas on a name? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: What hurts you the most in Perl?

2010-12-10 Thread Paul LeoNerd Evans
hope to be able to have IO::Socket::IP in core by 5.14. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Discussion question: what is the best syntax for documenting a coderef parameter?

2010-12-10 Thread Paul LeoNerd Evans
) $knext-() $klast-() $k-() =cut (see http://search.cpan.org/~pevans/CPS-0.10/lib/CPS.pm#kforeach(_...@items,_\body,_$k_) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital

Re: What hurts you the most in Perl?

2010-11-26 Thread Paul LeoNerd Evans
to worked in my case. Have you tried either Test::Refcount Test::MemoryGrowth ? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Which Build Module?

2010-07-21 Thread Paul LeoNerd Evans
./configure-alike helper for build time) natively supports Module::Build, but so far no real thoughts on EU::MM or M::I. http://search.cpan.org/perldoc?ExtUtils::CChecker Suggestions/improvements/patches welcome. ;) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered

Re: 2 Qs about Module::Build

2010-02-08 Thread Paul LeoNerd Evans
with it... -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: avoid running CPAN as root

2010-01-13 Thread Paul LeoNerd Evans
-0.27/t/35loop-child-root.t http://cpansearch.perl.org/src/PEVANS/Socket-Packet-0.03/t/20io-socket-packet.t -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Module naming suggestions : Test::DNS

2010-01-10 Thread Paul LeoNerd Evans
DNS queries, or mocking the results of such. Your module doesn't seem to be doing this - perhaps something like Check::DNS may be a more suitable name for yours? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc

ExtUtils::H2PM - generate pure-perl system extension modules

2010-01-08 Thread Paul LeoNerd Evans
the traditional XS route. Finally, find attached the full text of the module's documentation. I'd be interested to hear any thoughts, etc... -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ NAME ExtUtils::H2PM

Re: Test-only code

2009-12-23 Thread Paul LeoNerd Evans
::MockBar in there. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: MANIFEST (Makefile.pl) ignore Mercurial files

2009-12-17 Thread Paul LeoNerd Evans
MANIFEST.SKIP which contains: .*\.~\d~ .*\.bak .*\.swp .*\.tar(\.gz)? \.bzr \.bzrignore blib .*\.deb Makefile$ Makefile\.old MANIFEST\.SKIP Build$ _build .*\.c .*\.o It should be quite easy to extend this with \.(?:svn|bzr|hg|git|arch) or something... -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ

Re: MANIFEST (Makefile.pl) ignore Mercurial files

2009-12-17 Thread Paul LeoNerd Evans
choice, but I find too easily I'll forget to add something to the list, such as a new test script. Whereas, it's usually easier to spot things in the MANIFEST that ought not be there, and remove them. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http

Re: bug in Net::Cmd/how to do pop3s for gmail

2009-11-30 Thread Paul LeoNerd Evans
by http://search.cpan.org/~pevans/Term-TermKey-0.04/ (at the perl level) http://home.leonerd.org.uk/code/libtermkey/(at the C level) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP

Re: Quick style question

2009-11-19 Thread Paul LeoNerd Evans
be given to wondering why you need to manually import AF_INET6 or know anything about INET6 in the first place... What is it you're doing that can't be done with the normal getaddrinfo() / getnameinfo() sequences? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux

Re: Repository links in META/Pod should be http://

2009-11-01 Thread Paul LeoNerd Evans
On Sat, 31 Oct 2009 18:38:32 -0400 Ricardo Signes perl.moda...@rjbs.manxome.org wrote: I'm strongly opposed. There might not be any HTTP URL to my repositor, even though a CVS or Git URL may exist. +1 -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux

Re: Reliability of timing in smoke tests

2009-11-01 Thread Paul LeoNerd Evans
On Mon, 19 Oct 2009 14:16:18 +0200 sawyer x xsawy...@gmail.com wrote: On Mon, Oct 19, 2009 at 11:45 AM, Paul LeoNerd Evans leon...@leonerd.org.uk wrote: Before I think about this though; does anyone have any better suggestions? Are there other modules around with timing-sensitive tests

Re: Reliability of timing in smoke tests

2009-11-01 Thread Paul LeoNerd Evans
On Mon, 19 Oct 2009 12:05:33 -0700 Eric Wilhelm enoba...@gmail.com wrote: # from Paul LeoNerd Evans # on Monday 19 October 2009 02:45: Before I think about this though; does anyone have any better suggestions? Are there other modules around with timing-sensitive tests? How do they cope

Reliability of timing in smoke tests

2009-10-19 Thread Paul LeoNerd Evans
, or something of that nature. Before I think about this though; does anyone have any better suggestions? Are there other modules around with timing-sensitive tests? How do they cope with variable load on the test boxes? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350

Re: module name for test data?

2009-09-28 Thread Paul LeoNerd Evans
(capitalised) somewhere in its distribution name. The variations on common without test would imply it's some sort of shared useful code to use in production use. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc

Term::Info - takeover

2009-09-24 Thread Paul LeoNerd Evans
://cpants.perl.org/dist/used_by/Term-Info If I were to create another one which is more useful, providing more access to terminfo information, how might I go about creating a release of it? -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk

API design musings - CPS + IO::Async (or others)

2009-09-19 Thread Paul LeoNerd Evans
nothing IO::Async'y about the whole thing. Simply implementing another kwhile() method would allow Governors such as use CPS::Governor::POE $kernel; use CPS::Governor::AnyEvent $loop; use CPS::Governor::GLib $maincontext; ... -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350

Re: What Would you like to see in a CPAN Distro Manager?

2009-09-04 Thread Paul LeoNerd Evans
. So leave programmers to do what programmers do, and let the computers worry about extracting inline POD. :-) +1 -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Renaming a perl module/dist

2009-08-11 Thread Paul LeoNerd Evans
) can simply use base the new name. Should these go in their own dists, or would it be OK both in just the new one? And what for deleting the old name? And finally, is it all worth it, just for the neatness of a name? Or should I just live with it? -- Paul LeoNerd Evans leon...@leonerd.org.uk

Re: Renaming a perl module/dist

2009-08-11 Thread Paul LeoNerd Evans
easily be changed and updated. Given these, I suspect there'll be little impact because most people won't be using the name directly; it will come indirectly via one of these routes. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk

Re: Module::Build + automatic README / LICENSE

2009-06-19 Thread Paul LeoNerd Evans
. create_license = 1, create_readme = 1, and Bob's your uncle. Lovely. I've now got that set on my latest two module uploads, and it's doing just the right thing. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk

Re: Module::Build + automatic README / LICENSE

2009-05-12 Thread Paul LeoNerd Evans
for some integration with Module::Build to do it automatically from the data it already has to hand (i.e. the licence name itself) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Module::Build + automatic README / LICENSE

2009-05-11 Thread Paul LeoNerd Evans
Are either of those doable automatically? -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS srand($,= );print sort{rand0.5}grep{0.8rand}qw(another Just hacker of Perl) signature.asc Description: Digital signature

Re: Dual-Build Modules (What to do if both Makefile.PL and Build.PL exist)

2009-05-06 Thread Paul LeoNerd Evans
yet apply the same for 5.10, as 5.8 is still the default in lots of places. Perhaps in a year or two I might rethink that, but for now I have to keep 5.8 in mind. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc

Re: On 'unpack()' - How much did I eat?

2009-04-22 Thread Paul LeoNerd Evans
it would appear no changes to perl code are needed, though perhaps the docs could be improved somewhat to draw more attention to this, as relatively few people are aware of it. Certainly nobody in Freenode's #perl was when I asked... -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS

Re: On 'unpack()' - How much did I eat?

2009-04-21 Thread Paul LeoNerd Evans
On Tue, Apr 21, 2009 at 10:24:10AM +0100, Paul LeoNerd Evans wrote: sub pull_int { my $self = shift; my $i = unpack( N, $self-{buffer} ); substr( $i, 0, 4 ) = ; return $i; } Uh.. obviously, that's meant to be substr( $self-{buffer}, 0, 4 ) = ; /me unpacks more

On 'unpack()' - How much did I eat?

2009-04-21 Thread Paul LeoNerd Evans
to be a better way... -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS srand($,= );print sort{rand0.5}grep{0.8rand}qw(another Just hacker of Perl) signature.asc Description: Digital signature

Re: a lot of silliness about Module::Build

2009-04-10 Thread Paul LeoNerd Evans
for it :) -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Module name suggestions? - automatic per-OS subclass

2009-04-06 Thread Paul LeoNerd Evans
of all possible supported names, then filter that by what this machine is. I'm sure I recall in some code somewhere, the use of a list of possible OS family names, from most to least specific, keyed by $^O. I'm thinking something more like that would be best. -- Paul LeoNerd Evans leon

Re: RFC: Yet Another Excel Writer..

2009-04-02 Thread Paul LeoNerd Evans
here between camelCase and under_scores. Pick one. I suggest the latter - it seems more the way perl is done by convention. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Module name suggestions? - automatic per-OS subclass

2009-03-26 Thread Paul LeoNerd Evans
the magic used to allow another class to provide per-OS customisations. E.g. see my IO::Async example above :) -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS signature.asc Description: Digital signature

unicode.pm - a replacement of perl -C

2009-03-15 Thread Paul LeoNerd Evans
Since #!/usr/bin/perl -C no longer works, I've been pondering on what is a good replacement. How do people feel about: #!/usr/bin/perl use unicode; With tags to control it; things like use unicode qw( :stdio :env :argv :defaultio :locale ); -- Paul LeoNerd Evans leon...@leonerd.org.uk

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
in mind for stringification, so I guess if that helps debugging etc.. I could do that. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
. -- Paul LeoNerd Evans leon...@leonerd.org.uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
::Overlay String::Overlaid String::Overlays -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS srand($,= );print sort{rand0.5}grep{0.8rand}qw(another Just hacker of Perl) signature.asc Description: Digital signature

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
to suffer those ;) but I think I prefer MarkUp personally. Hrm. Well, MarkUp would tend to suggest issues of formatting or rendering attributes. That was mostly the use-case I had in mind, but only indirectly. Nothing in the implementation directly requires that to be the case. -- Paul LeoNerd Evans

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
. That isn't the case here - in fact, the string data itself is just stored in here as a single perl string. The tags are stored in as a list of [start, length, name, value] objects beside it. -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS srand($,= );print sort{rand0.5}grep

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
side-tracked by the name here. There's a lot of interesting API in the code, I feel the name is somewhat overshadowing any other discussion on the API design or other details... -- Paul LeoNerd Evans leon...@leonerd.org.uk |CPAN ID: PEVANS srand($,= );print sort{rand0.5}grep{0.8rand}qw

RFC: String::Tagged

2009-01-29 Thread Paul LeoNerd Evans
to some uses of tagged strings. Consider whether the behaviour of modification is chosen per-method, per-tag, or per-string. AUTHOR Paul Evans leon...@leonerd.org.uk perl v5.10.0 2009-01-30 String::Tagged(3pm) - -- Paul LeoNerd

Re: FAILs with undefined symbol: setup_constants

2008-10-29 Thread Paul LeoNerd Evans
. ... These are written by CPANPLUS::Dist::YACSmoke 0.02 and 0.04 by the same tester, this time known as chris. Like a cheetah who's just won Best Coat Award in the annual Serengeti Miss Africa contest; well spotted. Maybe chris knows something? Righto. I'll ask him. -- Paul LeoNerd Evans [EMAIL PROTECTED

FAILs with undefined symbol: setup_constants

2008-10-27 Thread Paul LeoNerd Evans
://nntp.x.perl.org/group/perl.cpan.testers/2028293 (5.10 / netbsd) http://nntp.x.perl.org/group/perl.cpan.testers/2149637 (5.10 / darwin) Before I go looking too deeply into it; is anyone aware of the reason behind this? Anything I can do about it? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ

Re: Integrating license related things of CPAN

2008-10-22 Thread Paul LeoNerd Evans
agreement with the wider community is good. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: Integrating license related things of CPAN

2008-10-22 Thread Paul LeoNerd Evans
thinking of the case where someone will just put anything in the field to shut up the tool because they just want to get on with it. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: RFC: Attribute::Storage

2008-10-22 Thread Paul LeoNerd Evans
On Mon, Oct 20, 2008 at 11:49:58PM +0100, Paul LeoNerd Evans wrote: Thoughts, anyone? On the name, the implementation, the idea,.. anything else that comes to mind? Nothing; anybody? In that case perhaps I'll shove it up on CPAN then. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350

Re: Proposal: Test::Refcount

2008-07-16 Thread Paul LeoNerd Evans
, CODE, GLOB and Regex types) as well. Consider: my $array = []; my $otherref = $array; Devel::Peek::SvREFCNT($array) = 1 Devel::Refcount::refcount($array) = 2 -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc

Re: Proposal: Test::Refcount

2008-07-15 Thread Paul LeoNerd Evans
On Tue, 15 Jul 2008 00:44:12 +0100 Paul LeoNerd Evans [EMAIL PROTECTED] wrote: GLOB = \*SomeNewName, Also, this one isn't a fair test. Any real object code in a module would probably just pass out a new IO handle (as from socket(), socketpair(), pipe(), etc...) or else generate one using

Re: Proposal: Test::Refcount

2008-07-15 Thread Paul LeoNerd Evans
, or a wrapper module to hide the magicness? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
has only 1 reference' ); There's a very simple implementation for this I can think of; using: use B qw( svref_2object ); sub refcount { my $sv = svref_2object( $_[0] ); return $sv-REFCNT - 1; # Because @_ refers to it too } Does this sound good? -- Paul LeoNerd Evans [EMAIL

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
to subtract 1, whereas the @_ array seems special and doesn't have that side-effect. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
and see some comments on it first. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ Test-Refcount-0.01.tar.gz Description: GNU Zip compressed data signature.asc Description: PGP signature

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
On Mon, 14 Jul 2008 20:59:34 +0100 David Cantrell [EMAIL PROTECTED] wrote: Can't you use Devel::Peek to get the refcount? I use B: use B qw( svref_2object ); my $SV = svref_2object($ref); my $refcount = $SV-REFCNT; -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
-- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
, I begin to wonder if it's more of a documentation issue. Perhaps somewhere in the documentation about objects and reference counts: The reference count of an object can be obtained by use B qw( svref_2object ); my $count = svref_2object($ref)-REFCNT; -- Paul LeoNerd Evans [EMAIL

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
, then subtract 1 from the refcount, rather than rely on @_ not incrementing the count. Perhaps that'll be more portable. Try again attached... -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ Test-Refcount-0.01.tar.gz Description: GNU Zip

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
On Mon, 14 Jul 2008 21:42:23 +0100 Paul LeoNerd Evans [EMAIL PROTECTED] wrote: OK; I've changed it to use a normal lexical $object, then subtract 1 from the refcount, rather than rely on @_ not incrementing the count. Perhaps that'll be more portable. Actually it occurs to me this may

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
explain the SCALAR one. This behaviour seems to complicate the idea of simply asserting REFCNT == 1. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ #!/usr/bin/perl -w use strict; use B qw( svref_2object ); my %refs = ( SCALAR

Re: Proposal: Test::Refcount

2008-07-14 Thread Paul LeoNerd Evans
On Tue, 15 Jul 2008 00:44:12 +0100 Paul LeoNerd Evans [EMAIL PROTECTED] wrote: SCALAR = do { \my $var }, It seems I can make the SCALAR ref have refcount 1 by changing this to SCALAR = do { my $var; \$var }, Various initialisations {e.g my $var = 1} also keep it happy. Just the CODE

Module proposal: event hook lists

2008-06-03 Thread Paul LeoNerd Evans
the other one. But maybe that's hard luck, and just what you get from taking the same number twice..? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

Re: Module proposal: event hook lists

2008-06-03 Thread Paul LeoNerd Evans
On Tue, Jun 03, 2008 at 12:49:57PM +0100, Paul LeoNerd Evans wrote: Of course, now we have the simplest of hooklist aggregations - the repeat while false one. What if we wanted something else? Suppose we wanted to sum some quantity? my $hooklist = Hooklist-new( aggregate = sub

Finding the best concrete subclass for an abstract base class

2008-05-27 Thread Paul LeoNerd Evans
, even if it involves a bit more coordination between the authors. How's anyone else go about this problem? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: How to challenge a cpan-testers test result?

2008-05-26 Thread Paul LeoNerd Evans
/noise ratio is roughly zero. This should largely become a non-issue now. 5.10 is the current stable perl, and comes with Module::Build. It's only the older testers on 5.8.8 or below that matter with this now. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460

Re: How to challenge a cpan-testers test result?

2008-05-26 Thread Paul LeoNerd Evans
for their own use. die OS unsupported unless $^O eq freebsd; in Build.PL should fix that. It'll turn your FAILs into NAs when run on non-FreeBSD boxen. I have two dists (IO-Ppoll and Solaris-SysInfo) which need that trick. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered

Re: RFC: URI::cpan

2008-03-26 Thread Paul LeoNerd Evans
. cpan://dist/Foo-Bar cpan://module/Foo::Bar cpan://FRED I'd easily go for the former. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature

Re: cpantesters.org stalled?

2008-02-09 Thread Paul LeoNerd Evans
On Thu, 7 Feb 2008 14:04:29 + Paul LeoNerd Evans [EMAIL PROTECTED] wrote: This page was generated by CPAN::WWW::Testers 0.33 at 2008-01-29 15:38:43 Ah; it's now been updated. Either false alarm, or someone's managed to fix it. In any case, all is happy now. :) -- Paul LeoNerd Evans

Any contact with BRUCEK?

2008-01-31 Thread Paul LeoNerd Evans
-in-action procedure? Is it possible I might be able to take ownership of it, if contact cannot be made? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

XS wrapper around system - how to test the wrapper but not the system?

2008-01-28 Thread Paul LeoNerd Evans
of assumptions the tests make that don't hold there any more. E.g. one problem I had was BSD4.4-based systems, whose struct sockaddr_in includes the sin_len field. http://cpantesters.perl.org/show/Socket-GetAddrInfo.html Does anyone have any strategy suggestions for this? -- Paul LeoNerd Evans

Re: Naming convention for thin wrappers around C libfoo.so ?

2007-12-11 Thread Paul LeoNerd Evans
is purely a convention of the environment; namely, dynamically linked ELF libraries. Similarly here, the fact it lives in the Lib:: namespace is a convention of the perl environment. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk

Re: Naming convention for thin wrappers around C libfoo.so ?

2007-12-11 Thread Paul LeoNerd Evans
::libmemcached, on the grounds of the 'lib' not really being part of the name. Yes; CamelCased names do seem the convention around here, except the pragmata, so I guess that's the way forward. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http

autoconf-like work in Build.PL - detecting OS features

2007-11-22 Thread Paul LeoNerd Evans
, it will JustWork there...? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ use strict; use warnings; use Module::Build; use Config; print ppoll() only works on Linux = 2.6.16, with a supporting libc.\n; print These requirements

Testers required for less-common platforms [was: RFC: Socket::GetAddrInfo]

2007-11-14 Thread Paul LeoNerd Evans
-getaddrinfo.pm will generate some useful output to compare the real and emulated versions. -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: PGP signature

  1   2   >