Re: Another string concat proposal

2001-04-25 Thread Nicholas Clark
as to whether using .. as concatenation is a good idea] Nicholas Clark

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Nicholas Clark
On Thu, Feb 15, 2001 at 10:29:33PM +0100, [EMAIL PROTECTED] wrote: On Thu, Feb 15, 2001 at 08:19:27PM +, Nicholas Clark wrote: On Thu, Feb 15, 2001 at 09:05:55PM +0100, [EMAIL PROTECTED] wrote: On Thu, Feb 15, 2001 at 11:23:10AM -0800, Nathan Wiger wrote: But I have never found

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-13 Thread Nicholas Clark
uot;return if $AUTOLOAD =~ /:DESTROY$/", however. Doesn't sub DESTROY {} have the same effect but with less typing? Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Nicholas Clark
ompression method number. Notice also the distinction - zip an archive format (put lots of files in one file and take them out again) which allows entries to be compressed. tar is just an archive format, gzip just a compression system. how very unix - combine small tools to get a job done :-) ]

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Nicholas Clark
at we want to be able to do with it is more important? 2: Is this really still language? If not, where should we be discussing it? Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Nicholas Clark
On Mon, Feb 12, 2001 at 01:14:58PM -0500, [EMAIL PROTECTED] wrote: On Mon, Feb 12, 2001 at 05:45:17PM +, Nicholas Clark wrote: When I last tried it (over a year ago) running the 5.005 regression tests with the standard libraries coming out of a zip file took about the same time

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-12 Thread Nicholas Clark
that perlbench would also not object to OO code for benchmarking. Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Nicholas Clark
works no problem once all the .al files are in a zip (it uses require) s/zip/something else/g to generalise Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Nicholas Clark
t; as I've heard it called by the advocates. (yes, I get irritated when I forget that BSD cp doesn't have a -a flag) However, in our portability quest "Get New Utilities" is not good [unless we package TomC's Perl Power Tools and just use those] Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Nicholas Clark
abhor is the idea of hardwiring the zip assumption deeply into our design. I would agree - hardwiring is to be avoided. Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Nicholas Clark
r gunzip in a perlio layer) 4: Can't do XS 5: not sure if it's a sick hack or an elegant hack It is also possible to place the include zipfile on the end of the perl executable and put $^X in @INC to make a 1 file perl distribution, but I don't think anyone ever tried this Nicholas Clark

Re: POST blocks (like END, but in a sub or sub-like scope)

2001-02-08 Thread Nicholas Clark
On Wed, Feb 07, 2001 at 10:59:00PM -0600, David L. Nicol wrote: Nicholas Clark wrote: on the other hand, I'll argue the other side that { my $flag open FOO, "bar" ? $flag=1 : die "aargh $!"; ... } post { close FOO if $flag; } is clearer

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Nicholas Clark
, assuming we can get permission. ) Do we really want to use tar format (over say cpio) as tar rounds files up to 512 block boundaries, and has some arbitrary restrictions on filename lengths in the headers? Nicholas Clark

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Nicholas Clark
On Thu, Feb 08, 2001 at 12:41:34PM -0500, Dan Sugalski wrote: At 05:39 PM 2/8/2001 +, Nicholas Clark wrote: Do we really want to use tar format (over say cpio) as tar rounds files up to 512 block boundaries, and has some arbitrary restrictions on filename lengths in the headers

Re: POST blocks (like END, but in a sub or sub-like scope)

2001-02-07 Thread Nicholas Clark
On Wed, Feb 07, 2001 at 05:15:41PM -0600, David L. Nicol wrote: Nicholas Clark wrote: On Wed, Feb 07, 2001 at 04:30:24PM -0600, David L. Nicol wrote: sub has_post_blocks{ my $i = 3; post { print "i ended up as $i"};

Re: Really auto autoloaded modules

2001-02-06 Thread Nicholas Clark
d like Foo [although modules ought to be good and get their dependencies right in Makefile.PL] and so on. But this has the disadvantage that you don't know how much you're letting yourself in for (in terms of new modules) until you've already started committing them to your installed tree. Nicholas Clark

Re: a name for the currently executing sub

2001-02-06 Thread Nicholas Clark
certainly possibly to read raw memory with suitable (ab)use of pack and unpack in perl (P and p) I can't remember if it's possible to write to raw memory, and I'm not currently on an operating system where I can test this sensibly. But it's not obvious, safe or portable. Nicholas Clark

Re: Why shouldn't sleep(0.5) DWIM?

2001-02-01 Thread Nicholas Clark
ot;s"), ($b/100) ** $n * 100' 90 4 Proportion of stuff still working 90% 4 modules chance of it all working 65.61% [OK, not strictly fair, as 4 modules are not independent variables - they may all happen to fall over on the same thing] Changes have compound effects. Nicholas Clark

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Nicholas Clark
loads AnyDBM_File to do the real work without the user (or script) knowing, so this idea could be extended. Nicholas Clark

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-30 Thread Nicholas Clark
long you slept for. How does the program discover if sleep can do subseconds? use Config; ? Nicholas Clark

Re: Expressions and binding operator

2000-12-20 Thread Nicholas Clark
ally want to do something a lot more complex than simple "$y =~" in your expression. Or do I guess wrong? Nicholas Clark

rfc 21 Replace wantarray with a generic want function

2000-12-12 Thread Nicholas Clark
I hope I'm not asking an already asked question. Nicholas Clark

Re: What will the Perl6 code name be?

2000-10-24 Thread Nicholas Clark
e "1;" Modules that did BEGIN {$locale::hint_bits = 0x800;} still do what's expected of perl5 when written: INIT { BEGIN {$locale::hint_bits = 0x800;} } Nicholas Clark

Re: Perl6 the platform-dependent bits...

2000-10-24 Thread Nicholas Clark
__value_in_regs you get the results in r0 to r3. Oh, and who said I didn't want to write my programs in perl and assembler? Nicholas Clark

Re: new to perl

2000-10-24 Thread Nicholas Clark
, the firm running perl.com). It's a reasonable question to ask, but you'll be more likely to get a meaningful answer if you can find an address as perl.com (no, sorry, I don't know offhand which address) Nicholas Clark

Re: RFC 357 (v2) Perl should use XML for documentation instead of POD

2000-10-05 Thread Nicholas Clark
on how to install BSD Nicholas Clark

Re: RFC 355 (v1) Leave $[ alone.

2000-10-01 Thread Nicholas Clark
o know how to handle it. Yes. I think I suggest something similar (doing it per array) but Bart's explanation made me realise this was not wanted. One doesn't want to change the array in any way, just how the local code sees arrays. Its use can still be discouraged, but that's not the same as saying "never use this" Nicholas Clark

Re: RFC 357 (v1) Perl should use XML for documentation instead of POD

2000-10-01 Thread Nicholas Clark
delimiters that q() etc support, did they? :-) Does Unicode define bracket pairings for character sets? ducks Nicholas Clark

Re: RFC 327 (v2) C\v for Vertical Tab

2000-09-30 Thread Nicholas Clark
a feature. Every non-useful irregularity removed aids advocacy, teaching and documenting, without hindering programming. Nicholas Clark

Re: RFC 355 (v1) Leave $[ alone.

2000-09-30 Thread Nicholas Clark
On Sat, Sep 30, 2000 at 09:56:43PM +0100, Nicholas Clark wrote: Similarly modules' formatting breaks if you set $/; $\; D'oh How many of the punctuation variables would be better with less-than-global scope? Nicholas Clark

Re: RFC 328 (v1) Single quotes don't interpolate \' and \\

2000-09-29 Thread Nicholas Clark
l5; I've also discovered that I missed a reference - rfc226 "Selective interpolation in single quotish context." Nicholas Clark

<    1   2   3