Mailing List Archive

substr Not Working
The following works under Perl 5.20.3, but not 5.30.0:

use Embperl;

my $template = <<'.';
[+ substr('ABCD',2,2) +]
.

my $body;

Embperl::Execute({input => \$template, output => \$body});

print "$body\n";

1;

Under 5.30.0, the substr value is empty.

Does anyone have any ideas about what may be happening?


[https://online.midwestern.edu/images/MaskUp.gif]

.. ..
RE: substr Not Working [ In reply to ]
Is this 10.4.1.65? it's not affecting RMS.

BZ saw this occurring with a payment form on .65

Best Regards

Matthew Kaiser - IT Department
630-515-6138

HelpDesk:
(630)-515-7361 - Illinois
(623)-572-3388 - Arizona

From: Rubinstein, James <JRUBIN@midwestern.edu>
Sent: Monday, March 15, 2021 1:33 PM
To: embperl@perl.apache.org
Subject: substr Not Working

CAUTION: This email originated from outside of MWU
The following works under Perl 5.20.3, but not 5.30.0:

use Embperl;

my $template = <<'.';
[+ substr('ABCD',2,2) +]
.

my $body;

Embperl::Execute({input => \$template, output => \$body});

print "$body\n";

1;

Under 5.30.0, the substr value is empty.

Does anyone have any ideas about what may be happening?


[https://online.midwestern.edu/images/MaskUp.gif]

.. ..
RE: substr Not Working [ In reply to ]
Which version of Embperl are we running?

http://www.cpantesters.org/distro/E/Embperl.html

Best Regards

Matthew Kaiser - IT Department
630-515-6138

HelpDesk:
(630)-515-7361 - Illinois
(623)-572-3388 - Arizona

From: Kaiser, Matthew <MKaiser@midwestern.edu>
Sent: Monday, March 15, 2021 1:41 PM
To: Rubinstein, James <JRUBIN@midwestern.edu>; embperl@perl.apache.org
Subject: RE: substr Not Working

CAUTION: This email originated from outside of MWU
Is this 10.4.1.65? it's not affecting RMS.

BZ saw this occurring with a payment form on .65

Best Regards

Matthew Kaiser - IT Department
630-515-6138

HelpDesk:
(630)-515-7361 - Illinois
(623)-572-3388 - Arizona

From: Rubinstein, James <JRUBIN@midwestern.edu<mailto:JRUBIN@midwestern.edu>>
Sent: Monday, March 15, 2021 1:33 PM
To: embperl@perl.apache.org<mailto:embperl@perl.apache.org>
Subject: substr Not Working

CAUTION: This email originated from outside of MWU
The following works under Perl 5.20.3, but not 5.30.0:

use Embperl;

my $template = <<'.';
[+ substr('ABCD',2,2) +]
.

my $body;

Embperl::Execute({input => \$template, output => \$body});

print "$body\n";

1;

Under 5.30.0, the substr value is empty.

Does anyone have any ideas about what may be happening?


[https://online.midwestern.edu/images/MaskUp.gif]

.. ..