[perl #36313] perl -e 1for$[=0 crash

2005-06-16 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36313] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36313 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

Re: [PATCH replacement] Re: [perl #36313] perl -e 1for$[=0 crash

2005-06-19 Thread Piotr Fusik
). Piotr Fusik

Re: [PATCH replacement] Re: [perl #36313] perl -e 1for$[=0 crash

2005-06-20 Thread Piotr Fusik
gt; + $x = 1 for $[ = 0; gt; + pass('optimized assignment to $[ used to segfault in scalar context'); gt; + if (($[) = 0) { $x = 1 } gt; + pass('optimized assignment to $[ used to segfault in list context'); gt; gt; Looks like the descriptions of contexts are swapped (i.e. quot;forquot;

[perl #36336] $# doesn't apply to 0

2005-06-20 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36336] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36336 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

Re: [perl #36336] $# doesn't apply to 0

2005-06-20 Thread Piotr Fusik
gt; gt; I guess we can then remove it from blead (like $*). gt; gt; Gah. I was hoping you'd come up for a patch which I could merge into maint :-( gt; Laziness doesn't always work. I guess it goes onto my todo... gt; gt; Yes, culling it is the best solution. Done as change #24908. Oh, no!

[perl #36359] 1x1e12 eq ''

2005-06-22 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36359] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36359 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[PATCH] Faster **

2005-06-23 Thread Piotr Fusik
This is a small optimization of pp_pow. The following: use Benchmark; timethis(3, 'my $x; for my $base (-8 .. 8) { for my $power (0 .. 10) { $x = $base ** $power; $x = $base ** $power; $x = $base ** $power; $x = $base **

Re: [PATCH] Faster **

2005-06-23 Thread Piotr Fusik
Oops, looks like lame web mail interface ate some whitespace. Here's the same patch as an attachment. Piotr patch-fast-pow Description: Binary data

Re: [perl #36359] 1x1e12 eq ''

2005-06-23 Thread Piotr Fusik
This patch fixes the following: perl -le print 1x1e12 ne '' ? 'ok' : 'not ok' not ok perl -le print 1x(1x12) ne '' ? 'ok' : 'not ok' not ok perl -le print +(1)x1e12 (no output) perl -le print +(1)x(1x12) (no output) diff -ruN perl-current/pp.c perl-patched/pp.c --- perl-current/pp.c Wed Jun

Re: [perl #36359] 1x1e12 eq ''

2005-06-24 Thread Piotr Fusik
With your patch, I get : $ ./perl -e 'print - x undef' Segmentation fault The problem coming from the line : count = SvIVX(sv); when sv is PL_sv_undef. Moreover you shouldn't be setting count = IV_MAX in all cases, I think. So, not applied as is. I'm just a beginner, so I don't know

Re: [PATCH] Faster **

2005-06-24 Thread Piotr Fusik
Due to recent codes changes (cleanup, variable declaration moved) in this part, your patch doesn't apply cleanly. Can you resubmit one against a more recent bleadperl ? No problem. patch-fast-pow Description: Binary data

[PATCH] perlfunc.pod

2005-07-09 Thread Piotr Fusik
Here are some cosmetic changes of perlfunc: 1. Documented no-operand versions of chdir, eval, exit, gmtime. 2. Normalized Cfoo() to foo(). 3. Normalized $foo to C$foo. 4. Changed =item import to =item import (LIST). Bye, Piotr perlfunc.patch.gz Description: GNU Zip compressed data

Re: [PATCH] Further lies in the File::Basename docs

2005-07-09 Thread Piotr Fusik
in which CTYPE is [A-Z] not uppercase for [a-z], and [a-z] not lowercase for [A-Z] ? http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/ dndotnet/html/stringsinnet20.asp#stringsinnet20_topic5

Re: [PATCH] perlfunc.pod

2005-07-11 Thread Piotr Fusik
-sequence of commands indicated by BLOCK. When modified by a loop +sequence of commands indicated by BLOCK. When modified by the Cwhile loop Which isn't true. do handles both while and until. I think the original wording should hold. Possibly perlsyn clarifies what a loop modifier is.

Re: [PATCH] perlfunc.pod

2005-07-11 Thread Piotr Fusik
Didn't we conclude it would be better to give Pod::Html the same foo() recognition magic that Pod::Man has and not have to put C around every function? ActivePerl HTMLs have links to functions even where there are no surrounding C. There is a small drawback, however: element(s) appears as a

[perl #36594] ActivePerl splits arguments passed to exec() on whitespace

2005-07-19 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36594] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36594 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36621] /\pL/ breaks -0

2005-07-21 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36621] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36621 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36622] y/// at end of file

2005-07-22 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36622] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36622 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

Re: [PATCH] perlfunc.pod

2005-07-24 Thread Piotr Fusik
[...] I wanted to clarify that do {} isn't special for for/foreach modifiers (they are loop modifiers, aren't they?). Good point. I guess they are. --- perl-current/pod/perlfunc.pod Sun Jul 24 11:30:36 2005 +++ perl-patched/pod/perlfunc.pod Sun Jul 24 11:38:16 2005 @@ -1220,8 +1220,8

[PATCH] perlfunc.pod: s/definetely/definitely/

2005-07-24 Thread Piotr Fusik
I googled definetely and it seems to be widely used. But I found this: http://wikitravel.org/en/Wikitravel:List_of_common_misspellings --- perl-current/pod/perlfunc.pod Sun Jul 24 11:30:36 2005 +++ perl-patched/pod/perlfunc.pod Sun Jul 24 12:26:12 2005 @@ -3707,7 +3707,7 @@ platforms are using

[perl #36674] -undef() eq '-0'

2005-07-27 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36674] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36674 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36672] Swapped warnings for -o and -O file tests

2005-07-27 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36672] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36672 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36676] -0.0 printed as 0 on Windows

2005-07-27 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36676] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36676 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36673] sub foo(@$) {} should generate an error

2005-07-27 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36673] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36673 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

[perl #36675] -'-10' eq '+10'

2005-07-27 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36675] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36675 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

Re: [PATCH] perlfunc.pod grammar fixes

2005-07-28 Thread Piotr Fusik
I have doubts about the following changes: Note that the $year element is Inot simply the last two digits of -the year. If you assume it is, then you create non-Y2K-compliant +the year. If you assume it is and then you create non-Y2K-compliant programs--and you wouldn't want to do that,

Re: Re: [PATCH] perlfunc.pod grammar fixes

2005-07-28 Thread Piotr Fusik
Note that a block by itself is semantically identical to a loop -that executes once. Thus Clast can be used to effect an early +that executes once. Thus Clast can be used to affect an early exit out of such a block. effect is a noun. affect is a verb so I think this change is correct.

Re: [PATCH] Re: [perl #36676] -0.0 printed as 0 on Windows

2005-07-28 Thread Piotr Fusik
What does Windows ActivePerl say for $ perl -we \'printf %0.f\\n, -0.1\' -0 C:\perl -we printf '%0.f', -0.1 -0 C:\perl -we printf '%0.f', -0.0 0

pp_negate

2005-07-29 Thread Piotr Fusik
I see three problems with this function: 1. [#36674] -undef results in -0.0 rather than the expected 0. This is probably easy to fix, but I don't know if undef is the only value for which (!SvIOKp(sv) !SvNOKp(sv) !SvPOKp(sv)). 2. [#36675] Strings starting with '-' or '+' are treaded as

Re: Re: pp_negate

2005-07-29 Thread Piotr Fusik
The first one looks wrong to me: # perl -wle \'$f = -fo; print -$f\' +fo # perl -wle \'$f = -NaN; print -$f\' +NaN Ugh. You learn to find some dusted, obscure Perl corner every day... This behavior is clearly documented in perlop: if the string starts with a plus or minus, a string

[PATCH] POD typos

2005-07-30 Thread Piotr Fusik
I've extracted a list of words from all the PODs and spell-checked it. The result is in the attachment. typos.patch Description: Binary data

[PATCH] Typos in *.p[lm]

2005-07-31 Thread Piotr Fusik
This time I spell-checked PODs embedded in *.p[lm] files. See the attachment. typos2.patch.gz Description: GNU Zip compressed data

[perl #36766] perldoc pollutes TEMP

2005-08-02 Thread Piotr Fusik
# New Ticket Created by Piotr Fusik # Please include the string: [perl #36766] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36766 This is a bug report for perl from [EMAIL PROTECTED], generated with the help

PodWiki (was: affect/effect)

2005-08-04 Thread Piotr Fusik
Anyone else for putting all the documentation on some kind of heavily modified wiki? I was going to write that we need a PodWiki, but it appears that this thing already exists! So I think this is a great idea. At least we should give it a try.

Re: [PATCH] POD typos

2005-08-04 Thread Piotr Fusik
Hello, Some of my corrections still haven't been applied. Attached a patch against 25265. Bye, Piotr typos3.patch Description: Binary data

Re: [PATCH] POD typos

2005-08-06 Thread Piotr Fusik
A A text (ASCII) string, will be space padded. -Z A null terminated (ASCIZ) string, will be null padded. +Z A null terminated (ASCIIZ) string, will be null padded. b A bit string (ascending bit order inside each byte, like vec()). That isn't a typo.The change should

Re: [PATCH] New test of IEEE floating point peculiarities

2005-08-06 Thread Piotr Fusik
(If somebody can point me at a user-visible way in Perl of extracting the sign from an NV other than by stringifying it, I'd love to hear about it.) On Windows: perl -le print unpack'H*',pack'F',-0.0 0080 On big-endians it will probably be: 8000

Re: [PATCH] POD typos

2005-08-07 Thread Piotr Fusik
On 6 Aug, Steven P. Schubiger wrote: On 6 Aug, Piotr Fusik wrote: A A text (ASCII) string, will be space padded. -Z A null terminated (ASCIZ) string, will be null padded. +Z A null terminated (ASCIIZ) string, will be null padded. b A bit string (ascending bit

Re: [PATCH] Re: [PATCH] New test of IEEE floating point peculiarities

2005-08-07 Thread Piotr Fusik
How about adding some tests for subnormals? Do you think it makes any sense?

Re: [PATCH] Re: [PATCH] perlfunc.pod grammar fixes

2005-08-09 Thread Piotr Fusik
+A program that compiles and usually executes L/Perl scripts. Or is +that Lperlfaq1/Is it a Perl program or a Perl script?|Perl programs? s/is that/are they/, I guess, but I may be wrong... s/usually //

Re: Re: [PATCH] Re: [PATCH] perlfunc.pod grammar fixes

2005-08-09 Thread Piotr Fusik
Leaving aside alternate backends (-MO=...) and the possibility of perl lying over and dying during the compile, there\'s still perl -c. -c is check syntax and not compile. And there are also -h and -v, but I wouldn't take serious writing something like perl can be used for checking syntax or

What is 32 ?

2005-08-12 Thread Piotr Fusik
Hello, I thought that 32 is simply an empty string, but it appears to be something different: perl -le print '' eq (32) 1 perl -le print 'a'|'' a perl -le print 'a'|(32) 0 Can someone explain me this? Piotr

Re: [perl #37101] my $v if (0); leaves $v around

2005-09-08 Thread Piotr Fusik
The following program invokes beta once instead of twice. Extremely non-intuitive. Really? It is effectively: $c = beta ($a) if ( ! defined $c ); # the if condition is true $c = beta ($a) if ( ! defined $c ); # the if condition is false 1) seems like it shouldn\'t compile. Why not? 2) $c is