summaryrefslogtreecommitdiff
path: root/lib/Tie
Commit message (Collapse)AuthorAgeFilesLines
* Tie::SubstrHash - Add strict & warningsJames Raspass2022-02-171-41/+44
|
* Tie::SubstrHash - Replace sub ceil with builtin::ceilJames Raspass2022-02-171-8/+1
|
* Tie::SubstrHash - Consistently deref with the arrow opJames Raspass2022-02-171-18/+18
|
* Tie::SubstrHash - Use ||= and //=James Raspass2022-02-171-3/+3
|
* Tie::SubstrHash - Replace tabs with spacesJames Raspass2022-02-171-56/+56
|
* Tie::SubstrHash: rewrite tests to use Test::MoreMichiel Beijen2021-12-281-65/+35
| | | | | | | These tests were still handrolling TAP output. I've dragged the tests into this century by porting them to Test::More. For: https://github.com/Perl/perl5/pull/19288
* do not count tests, instead use done_testing()Michiel Beijen2021-12-045-5/+14
| | | | | | | | | | | | | | | Having to count tests is annoying for maintainers. Also, manually updating count tests is problematic when multiple people are working on the same code; it causes merge conflicts and recounts. done_testing() is available since Test::More 0.88 which was released in 2009. This commit changes all tests under lib/ that use Test::More and were planning the number of tests. Michiel Beijen is now a Perl author
* Remove grandfather as a verb in Tie::Handle, Tie::Hash and Tie::ScalarOlaf Alders2021-09-283-8/+8
| | | | See https://github.com/Perl/perl5/issues/18830 for initial discussion.
* Fix a bunch of repeated-word typosDagfinn Ilmari Mannsåker2020-05-221-2/+2
| | | | | Mostly in comments and docs, but some in diagnostic messages and one case of 'or die die'.
* Tie::StdHandle::BINMODE: handle layer argumentHauke D2019-10-292-3/+14
| | | | | | | | | | Fixes #16262 BINMODE was not handling the LAYER argument. Also bump the version number. (cherry picked from commit 479d04b98e5b747e5c9ead7368d3e132f524a2b7) Signed-off-by: Nicolas R <atoomic@cpan.org>
* Replace multiple 'use vars' by 'our' in libNicolas R2017-11-113-9/+6
| | | | | | | | Using vars pragma is discouraged and has been superseded by 'our' declarations available in Perl v5.6.0 or later. This commit is about replacing the usage of 'vars' pragma by 'our' in 'lib' directory.
* Switch most open() calls to three-argument form.John Lightsey2016-12-231-1/+1
| | | | | | | | | | Switch from two-argument form. Filehandle cloning is still done with the two argument form for backward compatibility. Committer: Get all porting tests to pass. Increment some $VERSIONs. Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl For: RT #130122
* New bug numbers in lib/ and dist/, tooFather Chrysostomos2016-07-291-1/+1
| | | | | | This is my quick-and-dirty script: find dist -print0 | xargs -0 perl -pi -e 'BEGIN { %map = split " ", join "", `cat pb2rt.txt` } s/(?<!\d)\d{8}\.\d{3}(?!\d)/$& (#$map{$&})/g'
* Fix Tie::StdScalar when $instance exists but isn't a 'true' valueRuud H.G. van Tol2015-10-281-2/+2
| | | | | Patch received from Ruud H.G. van Tol <rvtol@isolution.nl>. Committer added ++$VERSION and Porting/checkAUTHORS.pl change.
* bump Tie::StdHandle versionDavid Mitchell2013-10-231-1/+1
| | | | after recent fixes
* Tie::StdHandle::WRITE: handle offsetDavid Mitchell2013-10-232-2/+9
| | | | the WRITE method was ignoring its offset argument.
* Tie::StdHandle appends extra copies of $\ to outputAnno Siegel2013-10-232-7/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [perl #120202] The following code demonstrates the problem: use Tie::Handle; my $out = do { no warnings 'once'; \ local *HANDLE }; tie *$out, 'Tie::StdHandle', '>&', \ *STDOUT or die; $\ = "haha\n"; print $out "hihi\n"; which prints hihi haha haha The string in $\ has been added twice, once explicitly by Tie::Handle::PRINT and another time implicitly by the use of (CORE::) print in Tie::StdHandle::WRITE. The bug also affects the use of say() with tied handles where a spurious newline is added by the same effect. [ test added by davem ]
* stdhandle.t: unlink the right file.David Mitchell2013-10-231-1/+1
| | | | | It writes to "afile", but initially deleted "afile.new" if it already existed.
* stdhandle.t: convert to use Test::MoreDavid Mitchell2013-10-231-35/+30
| | | | print "ok 13\n" is *so* 1990's.
* Increase $Tie::Scalar::VERSION to 1.03Father Chrysostomos2013-06-221-1/+1
|
* Increase $Tie::Hash::VERSION to 1.05Father Chrysostomos2013-06-221-1/+1
|
* Increase $Tie::Array::VERSION to 1.06Father Chrysostomos2013-06-221-1/+1
|
* Fixed verbatim lines in POD over 79 charactersBrian Gottreu2013-06-223-9/+12
|
* [perl #112826] Make Tie::StdHandle::READ respect offsetFather Chrysostomos2012-06-222-3/+7
| | | | | Tie::StdHandle::READ was ignoring the optional fourth argument to read(), specifying the offset into the target string.
* Increase $Tie::StdHandle::VERSION to 4.3Father Chrysostomos2012-06-221-1/+1
|
* remove index offsetting ($[)Zefram2011-09-091-4/+1
| | | | | | $[ remains as a variable. It no longer has compile-time magic. At runtime, it always reads as zero, accepts a write of zero, but dies on writing any other value.
* Remove Mac OS classic code from tests in lib.Nicholas Clark2011-01-181-9/+0
| | | | | Including all @INC setting boilerplate from lib/Tie/ExtraHash.t, which TestInit now performs.
* Fix typos (spelling errors) in lib/*Peter J. Acklam) (via RT2011-01-071-1/+1
| | | | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81890] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81890 > Signed-off-by: Abigail <abigail@abigail.be>
* Convert lib/Tie/Hash/NamedCapture.pm to an XS module in ext/Nicholas Clark2010-10-141-62/+0
| | | | Initially move only Tie::Hash::NamedCapture::flags from universal.c to it.
* Remove qw(...) as parentheses deprecated warningsPaul Johnson2010-09-101-1/+1
|
* make qw(...) first-class syntaxZefram2010-09-081-1/+1
| | | | | | | | | | This makes a qw(...) list literal a distinct token type for the parser, where previously it was munged into a "(",THING,")" sequence. The change means that qw(...) can't accidentally supply parens to parts of the grammar that want real parens. Due to many bits of code taking advantage of that by "foreach my $x qw(...) {}", this patch also includes a hack to coerce qw(...) to the old-style parenthesised THING, emitting a deprecation warning along the way.
* Stop Tie::Hash->TIEHASH() looping forever.Nicholas Clark2010-09-012-4/+28
| | | | | This change is analogous to bc3707112523ba7a in Tie::Scalar, but with far fewer tests.
* Add tests for Tie::ExtraHashDavid Cantrell2010-08-021-0/+50
|
* Bump module version numbersDavid Golden2010-07-191-1/+1
|
* Make example work with "use strict" by eliminating barewords.Alexandr Ciornii2010-07-151-3/+3
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Bram pointed out the new tests hang if the fix for #72878 isn't in place.Abigail2010-02-221-5/+16
| | | | This commits traps the recursion and throws an exception.
* Upped VERSIONAbigail2010-02-211-1/+1
|
* Don't recurse forever if both new() and TIESCALAR() are missing.Abigail2010-02-202-4/+49
| | | | | | This should fix issue #72878. Before calling $pkg -> new in TIESCALAR, we check whether $pkg -> new is actually the new defined in the Tie::Scalar package; if true, croak instead of calling it.
* Document differences between Tie::Scalar and Tie::StdScalarAbigail2010-02-201-0/+12
|
* Moved Tie-RefHash from lib/ to ext/Chris Williams2009-09-115-781/+0
|
* Move Tie::Memoize from lib to extSteffen Mueller2009-09-032-189/+0
|
* Move Tie::File from lib to extSteffen Mueller2009-09-0239-8964/+0
|
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-064-0/+0
|
* Add a $VERSION, strict and some documentation to Tie::StdHandle.Nicholas Clark2008-11-161-2/+33
| | | p4raw-id: //depot/perl@34859
* Bump VERSIONs in all non-dual-lived modules that have changedSteve Hay2008-09-153-3/+3
| | | | | | | | | | since 5.8.8, ready for merging into maint-5.8 prior to 5.8.9. (Many (all?) of these should really have been changed prior to 5.10.0, but better late than never.) Also modify cmpVERSION.pl to skip uninstalled test modules whose VERSIONs don't really matter. p4raw-id: //depot/perl@34365
* fix typo in a Tie::Hash documentation linkNiko Tyni2008-05-151-1/+1
| | | | | Message-Id: <1210795767-21221-1-git-send-email-ntyni@debian.org> p4raw-id: //depot/perl@33827
* Upgrade to Tie-RefHash-1.38Steve Peters2008-01-282-3/+10
| | | p4raw-id: //depot/perl@33099
* Move Tie::StdHandle into its own file.Michael G. Schwern2007-08-084-39/+64
| | | | | Message-Id: <46B8F683.7040607@pobox.com> p4raw-id: //depot/perl@31689
* Re: [PATCH] Callbacks for named captures (%+ and %-)Ævar Arnfjörð Bjarmason2007-06-061-45/+11
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706031324y5618d519p460da27a2e7fe712@mail.gmail.com> p4raw-id: //depot/perl@31341
* Sync Tie::RefHash with CPAN (1.37)Yuval Kogman2007-05-072-20/+33
| | | | | Message-ID: <20070507153508.GZ17982@woobling.org> p4raw-id: //depot/perl@31166