| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
aka [rt.cpan.org #55767] segfault on sqrt(2) with bigrat
The problem seems to be in &Math::BigInt::objectify. It doesn’t try to
convert the number object into the right class if $upgrade is defined.
The attached patch changes it to make sure it belongs to the calling
class or to the $upgrade class.
Here is a ‘one’-liner to trigger the same bug without bigrat:
perl -Ilib -MMath::BigInt=upgrade,Math::BigFloat \
-MMath::BigFloat=upgrade,Math::BigMouse -le \
'@Math::BigMouse::ISA = Math::BigFloat; print sqrt Math::BigInt->new(2)'
|
|
|
|
|
| |
I'm considering that this becomes official with 5.14, so
'stable' is a bit in the future
|
|
|
|
| |
How do I strip blank space from the beginning/end of a string?
|
| |
|
|
|
|
|
| |
This patch makes -0.0 stringify as "0" (while leaving sprintf %g/%f
unchanged).
|
|
|
|
|
| |
The & | ^ operators now avoid turning on numericness of read-only
arguments.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A recent discussion on Stackoverflow.com indicated to me that there is
some potential for confusion in the "Indirect Filehandles" section in
perlopentut.pod. See comments to
http://stackoverflow.com/questions/3661161/writing-a-macro-in-perl/3661239#36612
39
The attached patch is my attempt at clarifying that indirect
filehandles are closed when there are no more references to them
rather than simply when the end of the current lexical scope is
reached. I also added an example of returning such a filehandle from a
subroutine.
I am not sure if this is the best way to word it, so I would
appreciate feedback.
The patch is attached.
-- Sinan
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
[DELTA]
0.61 Sat Oct 2 11:41:29 2010
- U::C::Locale newly supports locales: hr, ig, sq.
- precomposites of e-dot-below, o-dot-below, o-tilde are tailored as well.
(affected locales: et, yo)
- Vietnamese (vi): added contractions for non-blocked decompositions
* base + dot-below + diacritical such as "a\x{323}\x{306} etc.
* base + tone + horn such as "o\x{300}\x{31B}" etc.
|
|
|
|
|
|
|
|
| |
This reverts commit 92adfbd49af0758bcc9a198cf2df2bd78c4176b9, which
removed a necessary assignment for the sake of consting.
In doing so, it allows subroutine redefinition to work properly again
in the debugger.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Change the example split output in a "Non-capturing groupings" example
from ('12','a','34','b','5') to ('12','a','34','a','5'). This way
it'll match the example code that goes along with it:
split /(a|b)+/, "12aba34ba5"
Reported-by: Antonio Bonifati <antonio.bonifati@gmail.com>
|
|
|
|
|
|
|
|
|
| |
[DELTA]
Changes for 0.44 Wed Sep 29 15:51:26 2010
============================================
* Apply a patch from brian d foy that adds a
debug() method for $DEBUG output.
|
|
|
|
| |
This reverts commit cffb36981555111f364a511fb5763f65ea748c0e.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If an overload method is itself blessed into a class that has
overloaded operators but does not have fallback enabled, then an error
is produced:
$ perl5.10.0
use overload '+' => sub{};
bless overload::Method main => '+';
overload::Method main => '+';
^D
Operation "ne": no method found,
left argument in overloaded package main,
right argument has no overloaded magic at /usr/local/lib/perl5/5.10.0/
overload.pm line 59.
The attached patch fixes this.
|
|
|
|
| |
Stop set-magic from being called after ref-to-glob assignment.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
[DELTA]
The attached patch makes the CPAN distribution of 'threads'
compatible with with v5.13.2 and later.
|
|
|
|
| |
+ How do I determine whether a scalar is a number/whole/integer/float?
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(77362 is the same as 36051)
|
|
|
|
|
|
| |
parse_unicode_opts expects to end on '\0'. So #!perl -C -w causes an
‘Unknown Unicode option letter ' '’ error. The attached
patch fixes it.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mktables is changed to process the Unicode named sequence file.
charnames.pm is changed to cache the looked-up values in utf8. A new
function, string_vianame is created that can handle named sequences, as
the interface for vianame cannot. The subroutine lookup_name() is
slightly refactored to do almost all of the common work for \N{} and the
vianame routines. It now understands named sequences as created my
mktables..
tests and documentation are added. In the randomized testing section,
half use vianame() and half string_vianame().
|
|
|
|
|
|
|
| |
Inside a bracketed character class, any \N{name} which expands to more
than one character will have only the first one considered. This
doesn't need named character sequences, as user-defined aliases have
long been able to be multi-char.
|
| |
|
| |
|
| |
|