[Purdue-pm] Perl 5's '{' .. '~' "broken"

Joe Kline gizmo at purdue.edu
Fri Oct 5 10:46:25 PDT 2018

Broken or working as documented?


"If the initial value specified isn't part of a magical increment
sequence (that is, a non-empty string matching /^[a-zA-Z]*[0-9]*\z/ ),
only the initial value will be returned."

Also, looking at the example in perldoc if you change your code from:

push @r, (ord $_[$i] .. ord $_[$i+1]);


push @r, (ord "$_[$i]" .. ord "$_[$i+1]" );

It will work as intended I think.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://mail.pm.org/pipermail/purdue-pm/attachments/20181005/5bbc1394/attachment.bin>

More information about the Purdue-pm mailing list