Comments (3)
From [email protected]
I am converting a perl cgi from perl-v5.001 (Solaris 2.5)`to perl-v5.005_03
(Solaris 2.6). The cgi contains code simular to that listed below.
Since this bug is causing serious problems, is there a patch or does the bug
exist in any other versions that are compitable with the Oracle 8 version of
Oraperl?
local ($a, $b, $c, %assoc);
$a = "a";
$b = "b";
$c = "c";
$assoc{one} = "11";
$assoc{two} = "22";
&print_values($a, $b, %assoc, $c);
sub print_values
{
local($sub_a, $sub_b, %sub_assoc, $sub_c) = @_;
print " value passed #1 **$_[0]**\n";
print " value passed #2 **$_[1]**\n";
print " value passed #3 **$_[2]**\n";
print " value passed #4 **$_[3]**\n";
print " value passed #5 **$_[4]**\n";
print "\n\n";
print " sub_a **$sub_a**\n";
print " sub_b **$sub_b**\n";
for $key (keys %sub_assoc)
{
print " sub_assoc - Key: $key Value: $sub_assoc{$key}\n";
}
print " sub_c **$sub_c**\n";
return;
}
When this code is executed by perl-v5.001 the following results are obtained.
value passed #1 **a**
value passed #2 **b**
value passed #3 **two**
value passed #4 **22**
value passed #5 **one**
sub_a **a**
sub_b **b**
sub_assoc - Key: one Value: 11
sub_assoc - Key: two Value: 22
sub_c **c**
When the code is executed by perl-v5.005_03 the following incorrect results
are obtained.
value passed #1 **a**
value passed #2 **b**
value passed #3 **two**
value passed #4 **22**
value passed #5 **one**
sub_a **a**
sub_b **b**
sub_assoc - Key: one Value: 11
sub_assoc - Key: two Value: 22
sub_assoc - Key: c Value:
sub_c ****
As one can see, perl has a bug such that it does not find the end of the
associative array correctly in the subroutine.
Thanks for any help in advance!
Lee
*************************************************
Lee Pasquali
Technical Director/Computer Systems Manager
The Research Imaging Center
The University of Texas Health Science Center at San Antonio
7703 Floyd Curl Dr.
San Antonio, Texas 78284
210-567-8100
pasquali@uthscsa.edu
*************************************************
from perl5.
From [email protected]
Please not that this ticket is from 7 June 1999 and has been cleared.
Thanks
Date: Wed, 17 Jul 2002 01:22:21 +0000
From: bugs-perl5@bugs6.perl.org
Subject: [perl #849] AutoReply: Possible associative array bug
To: PASQUALI@uthscsa.edu
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Managed-BY: Request Tracker 2.0.12 (http://www.fsck.com/projects/rt/)
RT-Ticket: perl #849
RT-Originator: PASQUALI@uthscsa.edu
X-RT-Loop-Prevention: perlGreetings,
This message has been automatically generated in response to the
creation of a trouble ticket regarding:
"Possible associative array bug".There is no need to reply to this message right now. Your ticket has been
assigned an ID of [perl #849].Please include the string:
[perl #849]
in the subject line of all future correspondence about this issue. To do so,
you may reply to this message (please delete unnecessary quotes)Thank you,
bugs-perl5@bugs6.perl.org-------------------------------------------------------------------------
Received: from jhereg.perl.com (IDENT:root@perl.com [199.45.135.9]) by
defender.perl.org (8.9.3/8.9.3/Debian/GNU) with ESMTP id QAA13443 for
<perlbugtron@perl.org>; Mon, 7 Jun 1999 16:39:17 -0400
From: PASQUALI@uthscsa.edu
Received: from elzip.uthscsa.edu (elzip.uthscsa.edu [129.111.1.11]) by
jhereg.perl.com (8.9.0/8.9.0) with ESMTP id NAA11486 for
<perlbug@perl.com>; Mon, 7 Jun 1999 13:02:48 -0600
Received: from CONVERSION-DAEMON by uthscsa.edu (PMDF V5.2-29 #33169) id
<01JC4DPGJ9W00035BV@uthscsa.edu> for perlbug@perl.com; Mon, 7 Jun 1999
14:03:05 CDT
Received: from biad46.uthscsa.edu (biad46.uthscsa.edu [129.111.249.7]) by
uthscsa.edu (PMDF V5.2-29 #33169) with SMTP id
<01JC4DPBDLVC0032JI@uthscsa.edu> for perlbug@perl.com; Mon, 07 Jun 1999
14:02:57 -0500 (CDT)
Received: by biad46.uthscsa.edu (SMI-8.6/SMI-SVR4) id NAA03635;
Mon, 07 Jun 1999 13:56:22 -0500
Date: Mon, 07 Jun 1999 13:56:22 -0500
Subject: Possible associative array bug
To: perlbug@perl.com
Cc: pasquali@biad46.uthscsa.edu
Message-Id: <199906071856.NAA03635@biad46.uthscsa.edu>
Content-Transfer-Encoding: 7BIT
X-Sun-Charset: US-ASCIII am converting a perl cgi from perl-v5.001 (Solaris 2.5)`to perl-v5.005_03
(Solaris 2.6). The cgi contains code simular to that listed below.Since this bug is causing serious problems, is there a patch or does the bug
exist in any other versions that are compitable with the Oracle 8 version of
Oraperl?local ($a, $b, $c, %assoc);
$a = "a";
$b = "b";
$c = "c";$assoc{one} = "11";
$assoc{two} = "22";&print_values($a, $b, %assoc, $c);
sub print_values
{local\($sub\_a\, $sub\_b\, %sub\_assoc\, $sub\_c\) = @​\_; print " value passed \#1 \*\*$\_\[0\]\*\*\\n"; print " value passed \#2 \*\*$\_\[1\]\*\*\\n"; print " value passed \#3 \*\*$\_\[2\]\*\*\\n"; print " value passed \#4 \*\*$\_\[3\]\*\*\\n"; print " value passed \#5 \*\*$\_\[4\]\*\*\\n"; print "\\n\\n"; print " sub\_a \*\*$sub\_a\*\*\\n"; print " sub\_b \*\*$sub\_b\*\*\\n"; for $key \(keys %sub\_assoc\) \{ print " sub\_assoc \- Key​: $key Value​: $sub\_assoc\{$key\}\\n"; \} print " sub\_c \*\*$sub\_c\*\*\\n"; return;
}
When this code is executed by perl-v5.001 the following results are obtained.
value passed #1 **a**
value passed #2 **b**
value passed #3 **two**
value passed #4 **22**
value passed #5 **one**sub_a **a**
sub_b **b**
sub_assoc - Key: one Value: 11
sub_assoc - Key: two Value: 22
sub_c **c**When the code is executed by perl-v5.005_03 the following incorrect results
are obtained.value passed #1 **a**
value passed #2 **b**
value passed #3 **two**
value passed #4 **22**
value passed #5 **one**sub_a **a**
sub_b **b**
sub_assoc - Key: one Value: 11
sub_assoc - Key: two Value: 22
sub_assoc - Key: c Value:
sub_c ****As one can see, perl has a bug such that it does not find the end of the
associative array correctly in the subroutine.Thanks for any help in advance!
Lee*************************************************
Lee Pasquali
Technical Director/Computer Systems Manager
The Research Imaging Center
The University of Texas Health Science Center at San Antonio
7703 Floyd Curl Dr.
San Antonio, Texas 78284210-567-8100
pasquali@uthscsa.edu
*************************************************
*************************************************
Lee Pasquali
Technical Director/Computer Systems Manager
The Research Imaging Center
The University of Texas Health Science Center at San Antonio
7703 Floyd Curl Dr.
San Antonio, Texas 78284
210-567-8100
pasquali@uthscsa.edu
*************************************************
from perl5.
@rspier - Status changed from 'open' to 'resolved'
from perl5.
Related Issues (20)
- [doc] join with undef values HOT 7
- The Perl debugger does not honor 'use strict' for expression evaluation HOT 2
- perl5db.pl: handling of undefined watch_expressions in _DB__handle_watch_expressions() HOT 1
- tests fail when building [email protected] with intel oneapi C compiler
- UNIVERSAL.pm docfix HOT 1
- [MSWin] win32/GNUmakefile CFLAGS needs "-Wno-error=implicit-function-declaration" if building perl with gcc-14.1.0 HOT 10
- ExtUtils::CBuilder fails to compile modules with warnings when -Wall is part of Perl's compile time flags HOT 4
- [doc] Don't use two dashes at the top of man pages HOT 1
- [doc] perlsyn doesn't have any "push my ..." examples HOT 10
- feature 'extra_paired_delimiters': Please remove U+0706/U+0707 from the list HOT 2
- B::Deparse: blead incorrectly deparses __LINE__ HOT 5
- perldb requires Term::Rendezvous if the 'noTTY' option is set, but it is unavailable (anywhere?) HOT 2
- perlpolicy supported version updates have been very inconsistent
- makerel should always set --format=ustar
- Perl on Solaris Sparc incorrectly adds -L/usr/lib/sparcv9 into ldflags and lddlflags HOT 4
- Makefiles are missing targets, can't run `make distclean` HOT 15
- [doc] Deëxperimented features are not mentioned in perldelta HOT 1
- `local $h{$k}` doesn't remove previously non-existing key from shared hashes HOT 2
- [doc] use VERSION - "use 5.12;" vs. "use strict;" and "use 5.35.0;" vs. "use warnings;" HOT 3
- `call_argv` fails to call `SAVETMP`/`FREETMP` when creating mortal argument HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl5.