Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Mark Jason Dominus
Steve Peters: perl -we '$file=X; open my $fh, $file;' Parentheses missing around my list at -e line 1. The warning is inappropriate in this context. This can be prevented by simply putting a () around the $fh so that Perl scopes the my correctly. I don't

Re: [perl #36127] Using exists() on @_ does not work as expected with undef

2005-06-08 Thread Rafael Garcia-Suarez
Yitzchak Scott-Thoennes wrote: I agree with the sentiment, but think it would be worth it (perhaps in conjuction with a short warning in perlfunc/exists that exists on @_ or @DB::args may not work). The only complete fix I see would be to also make av_reify replace all PL_sv_undefs with new

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Yitzchak Scott-Thoennes
On Wed, Jun 08, 2005 at 03:37:45AM -0400, Mark Jason Dominus wrote: Steve Peters: perl -we '$file=X; open my $fh, $file;' Parentheses missing around my list at -e line 1. The warning is inappropriate in this context. This can be prevented by simply

Re: simplifying _nolen variants

2005-06-08 Thread Yitzchak Scott-Thoennes
On Tue, Jun 07, 2005 at 03:11:31PM +0100, Nicholas Clark wrote: Is this patch (or something close) worth applying? Looks like a good idea to me.

Re: [perl #36127] Using exists() on @_ does not work as expected with undef

2005-06-08 Thread Yitzchak Scott-Thoennes
On Wed, Jun 08, 2005 at 10:06:28AM +0200, Rafael Garcia-Suarez wrote: Yitzchak Scott-Thoennes wrote: I agree with the sentiment, but think it would be worth it (perhaps in conjuction with a short warning in perlfunc/exists that exists on @_ or @DB::args may not work). The only complete

Re: [perl #36127] Using exists() on @_ does not work as expected with undef

2005-06-08 Thread Rafael Garcia-Suarez
Yitzchak Scott-Thoennes wrote: On Wed, Jun 08, 2005 at 10:06:28AM +0200, Rafael Garcia-Suarez wrote: Yitzchak Scott-Thoennes wrote: I agree with the sentiment, but think it would be worth it (perhaps in conjuction with a short warning in perlfunc/exists that exists on @_ or @DB::args

Re: FindBin.pm: incomplete getcwd/cwd patch and SELinux (Strict policy)

2005-06-08 Thread Rafael Garcia-Suarez
José Pedro Oliveira wrote: When the mrtg cron job runs under the SELinux strict policy (this problem doesn't occur with the targeted policy), it runs in a restricted domain that doesn't allow acces to the root homedir (the cron job uses the root account). When this happen the variable

Re: [PATCH] regexec.c utf8 loading

2005-06-08 Thread Rafael Garcia-Suarez
Andy Lester wrote: This patch refactors some repeated code into macros, and throws in an assertion to make sure that the UTF8 classes have been loaded succesfully, all in the name of cleaning up a whole bunch of lint and GCC warnings. Thanks, applied as change #24754.

Re: [perl #36127] Using exists() on @_ does not work as expected with undef

2005-06-08 Thread Yitzchak Scott-Thoennes
On Wed, Jun 08, 2005 at 11:28:01AM +0200, Rafael Garcia-Suarez wrote: Yitzchak Scott-Thoennes wrote: On Wed, Jun 08, 2005 at 10:06:28AM +0200, Rafael Garcia-Suarez wrote: Yitzchak Scott-Thoennes wrote: I agree with the sentiment, but think it would be worth it (perhaps in conjuction

Re: [perl #36127] Using exists() on @_ does not work as expected with undef

2005-06-08 Thread Dave Mitchell
On Tue, Jun 07, 2005 at 06:54:40PM -0700, Yitzchak Scott-Thoennes wrote: I agree with the sentiment, but think it would be worth it (perhaps in conjuction with a short warning in perlfunc/exists that exists on @_ or @DB::args may not work). But it can happen in other circumstances too. Eg XS

Smoke [5.9.3] 24745 FAIL(F) bsd/os 4.1 (i386/1 cpu)

2005-06-08 Thread kane
Automated smoke report for 5.9.3 patch 24745 fixit.xs4all.nl: Pentium II (i386/1 cpu) onbsd/os - 4.1 using cc version egcs-2.91.66 19990314 (egcs-1.1.2 release) smoketime 3 hours 58 minutes (average 1 hour 59 minutes) Summary: FAIL(F) O = OK F = Failure(s), extended

[perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Steve Peters via RT
[stmpeters - Wed Jun 08 03:58:28 2005]: [ysth - Wed Jun 08 01:08:32 2005]: On Wed, Jun 08, 2005 at 03:37:45AM -0400, Mark Jason Dominus wrote: Steve Peters: perl -we '$file=X; open my $fh, $file;' Parentheses missing around my list at -e

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Rafael Garcia-Suarez
Steve Peters via RT wrote: This ticket has been reopened, but I not really sure why? Can you explain? Oops! I forgot to copy p5p on the reply. Can you give an explanation of why this warning is inappropriate please? because the code is appropriately parsed by perl. This is one

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread H.Merijn Brand
On Wed, 8 Jun 2005 14:19:39 +0200, Rafael Garcia-Suarez [EMAIL PROTECTED] wrote: Steve Peters via RT wrote: This ticket has been reopened, but I not really sure why? Can you explain? Oops! I forgot to copy p5p on the reply. Can you give an explanation of why this warning

Unsuccessful stat on filename containing newline

2005-06-08 Thread Rafael Garcia-Suarez
H.Merijn Brand wrote: another rather annoying one is pc09:/home/merijn 101 perl -we'$x=foo\nbar;-f $x and die file' Unsuccessful stat on filename containing newline at -e line 1. pc09:/home/merijn 102 (changing Subject:) Do you often have filenames that contain \n ?

Re: Unsuccessful stat on filename containing newline

2005-06-08 Thread Paul Johnson
On Wed, Jun 08, 2005 at 02:40:55PM +0200, Rafael Garcia-Suarez wrote: H.Merijn Brand wrote: another rather annoying one is pc09:/home/merijn 101 perl -we'$x=foo\nbar;-f $x and die file' Unsuccessful stat on filename containing newline at -e line 1. pc09:/home/merijn 102

Re: Unsuccessful stat on filename containing newline

2005-06-08 Thread H.Merijn Brand
On Wed, 8 Jun 2005 14:40:55 +0200, Rafael Garcia-Suarez [EMAIL PROTECTED] wrote: H.Merijn Brand wrote: another rather annoying one is pc09:/home/merijn 101 perl -we'$x=foo\nbar;-f $x and die file' Unsuccessful stat on filename containing newline at -e line 1. pc09:/home/merijn 102

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Steve Peters
On Wed, Jun 08, 2005 at 02:19:39PM +0200, Rafael Garcia-Suarez wrote: Steve Peters via RT wrote: This ticket has been reopened, but I not really sure why? Can you explain? Oops! I forgot to copy p5p on the reply. Can you give an explanation of why this warning is

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Rafael Garcia-Suarez
Steve Peters wrote: Since the heuristics of this warning seem to be too simplistic for the situation its trying to handle, is this warning needed? No, I think it's still very useful for code like : my $foo, bar;

[perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Steve Peters via RT
[EMAIL PROTECTED] - Wed Jun 08 06:18:40 2005]: Steve Peters wrote: Since the heuristics of this warning seem to be too simplistic for the situation its trying to handle, is this warning needed? No, I think it's still very useful for code like : my $foo, bar; In that

[PATCH] pp_pack.c cleanup

2005-06-08 Thread Andy Lester
Here's some consting and localizing and reindenting of pp_pack.c -- Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance Index: pp_pack.c === --- pp_pack.c (revision 522) +++ pp_pack.c (working copy) @@ -2319,7

Smoke [5.9.3] 24744 FAIL(F) openbsd 3.7 (i386/1 cpu)

2005-06-08 Thread steve
Automated smoke report for 5.9.3 patch 24744 mccoy.peters.homeunix.org: Intel Pentium III (GenuineIntel 686-class, 512KB L2 cache) (i386/1 cpu) onopenbsd - 3.7 using cc version 3.3.5 (propolice) smoketime 8 hours 33 minutes (average 1 hour 4 minutes) Summary: FAIL(F) O =

[perl #36211] local @a inside eval

2005-06-08 Thread Fandiño
# New Ticket Created by Salvador Fandio # Please include the string: [perl #36211] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36211 To: [EMAIL PROTECTED] Subject: local @a inside eval Cc: [EMAIL PROTECTED]

[perl #36213] Possible flaw in Safe.pm/Opcode.pm that allows access to any file

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

[perl #36214] OK: perl v5.8.6 +23953 +33990 on darwin-thread-multi-2level 8.0

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

[perl #36216] OK: perl v5.9.2 on x86_64-linux 2.6.9

2005-06-08 Thread via RT
# New Ticket Created by Cosimo Streppone # Please include the string: [perl #36216] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36216 This is a success report for perl from [EMAIL PROTECTED], generated with the

[perl #36217] error expected but not given for str vs num comparison

2005-06-08 Thread via RT
# New Ticket Created by fredaa elder # Please include the string: [perl #36217] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36217 Dear Perl people: I got very puzzled with the following situation: using '==' for

bug #36211 not showing here

2005-06-08 Thread Salvador Fandiño
Hi, I reported bug #36211 via perlbug but it is not showing here (well, here at nntp://nntp.per.org/perl.perl5.porters), and I believe it's a serious one that shouldn't go unnoticed. Cheers, - Salvador.

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Garry Williams
On Tue, 2005-06-07 at 23:04 +, Steve Peters via RT wrote: perl -we '$file=X; open my $fh, $file;' Parentheses missing around my list at -e line 1. The warning is inappropriate in this context. A workaround is to write: perl -we '$file=X;

Re: [perl #36211] local @a inside eval

2005-06-08 Thread Dave Mitchell
On Wed, Jun 08, 2005 at 12:01:32AM -, Salvador Fandiño wrote: $#a gets corrupted in this code: perl -e 'for (1,2) {eval { local @a; print $#a\n; @a=(1..4) } }' -1 255 The bug appears to present even if the eval is replaced with a bare block, but not if the block is removed altogether.

Re: [perl #36211] local @a inside eval

2005-06-08 Thread Paul Johnson
On Wed, Jun 08, 2005 at 08:43:05PM +0100, Dave Mitchell wrote: On Wed, Jun 08, 2005 at 12:01:32AM -, Salvador Fandiño wrote: $#a gets corrupted in this code: perl -e 'for (1,2) {eval { local @a; print $#a\n; @a=(1..4) } }' -1 255 The bug appears to present even if the eval is

Re: [perl #36211] local @a inside eval

2005-06-08 Thread Nicholas Clark
On Wed, Jun 08, 2005 at 10:11:08PM +0200, Paul Johnson wrote: The bug appears to present even if the eval is replaced with a bare block, but not if the block is removed altogether. The second time round the loop, the magic $#a SV proxy that's pushed onto the stack is supposed to have a

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Abigail
On Wed, Jun 08, 2005 at 07:06:07AM -0400, Garry Williams wrote: On Tue, 2005-06-07 at 23:04 +, Steve Peters via RT wrote: perl -we '$file=X; open my $fh, $file;' Parentheses missing around my list at -e line 1. The warning is inappropriate in this

Re: [perl #7250] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Abigail
On Wed, Jun 08, 2005 at 01:41:12PM -, Steve Peters via RT wrote: [EMAIL PROTECTED] - Wed Jun 08 06:18:40 2005]: Steve Peters wrote: Since the heuristics of this warning seem to be too simplistic for the situation its trying to handle, is this warning needed? No, I think

Re: [perl #36217] error expected but not given for str vs num comparison

2005-06-08 Thread Michael G Schwern
On Wed, Jun 08, 2005 at 09:09:14AM -, fredaa elder wrote: I got very puzzled with the following situation: using '==' for numeric equality on string 23.456 7 /s versus the number 23.456, it tests OK/TRUE while I would think it should be FALSE. Its true because the numification of

Smoke [5.9.3] 24765 FAIL(FM) MSWin32 WinXP/.Net SP1 (x86/1 cpu)

2005-06-08 Thread Steve Hay
Automated smoke report for 5.9.3 patch 24765 TANGAROA.uk.radan.com: Intel(R) Pentium(R) 4 CPU 2.00GHz(~1992 MHz) (x86/1 cpu) onMSWin32 - WinXP/.Net SP1 using cl version 12.00.8804 smoketime 3 hours 56 minutes (average 9 minutes 52 seconds) Summary: FAIL(FM) O = OK F =

bugtracking - Re: [perl #] Inappropriate warning for 'my' in 'open'

2005-06-08 Thread Robert Spier
Hmm. mjd's response doesn't seem to have reopened the ticket, though. Why not? Because we'd end up with a *ton* of re-opened tickets if we had that activated. Discussion often goes on after the bug has been (correctly) marked resolved. -R

[PATCH] instead of unions use double cast for data pointer - function pointer

2005-06-08 Thread Jarkko Hietaniemi
The attached patch does data pointer - function pointer casting a bit differently than my earlier attempts at it, which tunneled the pointers through a union. There's an easier way to do it which feels slightly less unclean (and avoids assigning the value to a temp slot), by doing a double cast