| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
$_ is guaranteed to be lexical here, because the parser did an allocmy
when parsing the given() statement.
|
|
|
|
|
| |
We don't load strict.pm, we just manipulate the hint bits.
Plus more tests.
|
| |
|
|
|
|
|
|
| |
This makes ~~ commutative with regard to undef, and fixes an
inconsistency, since C<undef ~~ [0]> was not matching, and ~~
should be distributive in this case.
|
|
|
|
|
|
| |
This fixes bug #66942 : as a / was left in the directory name,
$INC{"Foo.pm"} for a file loaded from the current directory
was given the incorrect value "/Foo.pm".
|
| |
|
| |
|
|
|
|
| |
This way, we can handle tied hashes such as ones that have references as keys.
|
|
|
|
|
|
| |
Doesn't really make a difference as WIN32 is defined as '1' when
it is defined, but there is something to be said for consistent
usage.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Both 'do' and 'require' treat paths *explicitly* relative to the
current directory (starting with './' or '../') as a special form of
absolute path. That means they can be loaded directly and don't need
to be resolved via @INC, so they don't rely on '.' being in @INC
(unless running in taint mode). This behavior is "documented" in the P5P
thread "Coderefs in @INC" from 2002.
The code is missing special treatment of backslashes on Windows
so that '.\\' and '..\\' are handled in the same manner.
This change fixes
http://rt.perl.org/rt3/Public/Bug/Display.html?id=63492
(Note that the references to taint mode in the bug report are only
relevant as far as taint mode removes '.' from @INC).
This change also fixes the following Scalar-List-Utils bug report:
http://rt.cpan.org/Public/Bug/Display.html?id=25430
The Scalar::Util test failure in t/p_tainted.t only manifests itself
under Test::Harness 3, and only outside the Perl core:
* Test::Harness 2 (erroneously) puts '-I.' on the commandline in taint
mode and runs something like this:
`perl -I. t/p_tainted.t`
so '.\t\tainted.t' can be found via '.' in @INC.
* Core Perl runs something like this from the t/ directory:
`..\perl.exe -I../lib ../ext/List-Util/t/p_tainted.t`
so '.\..\ext\List-Util\t\tained.t' can be found via '../lib' in @INC.
Signed-off-by: Jan Dubois <jand@activestate.com>
|
| |
|
| |
|
|
|
|
|
| |
Note that undef ~~ @array is not distributive, it only tests for
definedness of array elements.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
t/op/switch.t
|
| |
| |
| |
| |
| | |
See bug [perl #65114] possible unnecesary warning / Exiting given via next.
Those warnings were not necessary.
|
| |
| |
| |
| |
| |
| |
| |
| | |
(MacOS support was removed from MakeMaker in 6.22, and merged to blead on
15th December 2004 with 5dca256ec738057dc331fb644a93eca44ad5fa14. After this
point MacOS wouldn't even have been able to build the perl binary, because it
would not have been able to build DynaLoader. If anyone wishes to resurrect
MacOS, start by reversing this commit and the relevant part of that commit.)
|
| |
| |
| |
| | |
(to build tricks on a sane base)
|
| |
| |
| |
| | |
(Zefram remarks that all(empty set) is true)
|
| |
| |
| |
| |
| | |
Make documentation more precise about the different cases,
and add tests.
|
| |
| |
| |
| |
| | |
Pass elements in correct order to the sub-smart-match when comparing
two arrays. And more tests
|
| |
| |
| |
| | |
(remove commutativity)
|
| |
| |
| |
| |
| |
| | |
This implement the new semantics of C<~~ HASH> smart matching.
This also reveals that overloading actually does not work at all.
Add also tests for C<undef ~~ %hash>.
|
| |
| |
| |
| | |
(and implement this for the C<~~ coderef> form)
|
| | |
|
| | |
|
|/
|
|
| |
(plus, fix a metasyntactic name clash in the switch test)
|
|
|
|
| |
(even if $object hasn't overloaded the ~~ operator)
|
|
|
|
| |
use it where possible.
|
| |
|
|
|
|
|
| |
and hence the 'create' argument is actually 'flags'. Fix code and documentation
that used TRUE or FALSE to use 0 or GV_ADD.
|
| |
|
|
|
|
|
|
|
| |
a subroutine is defined, even if the eval'd string has subsequent
syntax errors. This allows the debugger to single step into these
subroutines.
p4raw-id: //depot/perl@34986
|
|
|
|
|
| |
evals that fail to compile.
p4raw-id: //depot/perl@34985
|
|
|
|
|
|
|
| |
show you that something you thought worked doesn't.
Sadly it's not possible to trivially make it work, so for now they're
todo_skip().
p4raw-id: //depot/perl@34981
|
|
|
|
|
|
| |
which give total control over when source code from evals is stored.
The debugger doesn't need them, but I forsee that profilers might.
p4raw-id: //depot/perl@34979
|
|
|
|
|
| |
static. Macros PUSHSUBST() and POPSUBST() are only viable in PERL_CORE.
p4raw-id: //depot/perl@34935
|
|
|
|
|
| |
the ANSI gods of VMS.
p4raw-id: //depot/perl@34886
|
|
|
| |
p4raw-id: //depot/perl@34880
|
|
|
|
|
|
| |
variable, and hence (usually) saving all globs, not just those that
should be kept.
p4raw-id: //depot/perl@34879
|
|
|
|
|
|
|
|
| |
memchr(). Result - eval""ed source with embedded NULs was not split
correctly into lines for the debugger. Obscure. But still a bug.
Maybe the Campaign for the Elimination of strlen() needs to take a long
hard stare at every strchr() too. And strmp() while we're looking.
p4raw-id: //depot/perl@34876
|
|
|
|
|
|
|
| |
a simple 1 byte write has the same desired effect.
Clearly the Campaign for the Elimination of strlen() needs to branch
out into str*cat() and str*cpy().
p4raw-id: //depot/perl@34874
|
|
|
|
|
| |
lines in subroutines defined inside eval ""s for the debugger.
p4raw-id: //depot/perl@34873
|
|
|
|
|
|
|
|
|
| |
[ 34841]
Change 34693 introduced a regression spotted by Devel::SmallProf.
p4raw-link: @34841 on //depot/maint-5.8/perl: 95d1ca54dd69844873c9f0e6981fcfd632fa4274
p4raw-id: //depot/perl@34857
p4raw-integrated: from //depot/maint-5.8/perl@34854 'merge in' pp_ctl.c
(@34726..)
|
|
|
|
|
|
|
|
|
| |
As Nicholas already noted in a FIXME, assigning to DEFSV should
use GvSV instead of GvSVn. This change ensures that, at least
under -DPERL_CORE, DEFSV cannot be assigned to and introduces
a DEFSV_set macro to allow setting DEFSV.
This fixes #53038: map leaks memory.
p4raw-id: //depot/perl@34776
|
|
|
|
|
|
| |
Message-ID: <25940.1225611819@chthon>
Date: Sun, 02 Nov 2008 01:43:39 -0600
p4raw-id: //depot/perl@34698
|
|
|
|
|
|
| |
This is mostly to silence gcc's warning, "format not a string
literal and no format arguments".
p4raw-id: //depot/perl@34694
|
|
|
|
|
|
|
|
| |
PERLDBf_LINE, so that profilers (such as NYTProf) have access to the
lines of the eval, without the speed impact of other parts of the
debugger infrastructure. PERLDBf_LINE is unchanged. Based largely on a
patch by Tim Bunce in <20081028152749.GA12500@timac.local>
p4raw-id: //depot/perl@34693
|