Upstream software project

perl-Tie-Hash-Method

Tied hash with specific methods overriden by callbacks

About perl-Tie-Hash-Method

Tied hash with specific methods overriden by callbacks

This project links 2 native package records across 2 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

openSUSE Leap 15.6: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.perl-Tie-Hash-Method: recorded package coverageopenSUSE Leap 15.61 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
perl-Tie-Hash-Method
Publisher
Not authoritatively mapped
Native package records
2
Operating systems
opensuse-leap-15-6, opensuse-tumbleweed
License expression
GPL-1.0+ or Artistic-1.0
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

Tie::Hash::Method provides a way to create a tied hash with specific overriden behaviour without having to create a new class to do it. A tied hash with no methods overriden is functionally equivalent to a normal hash. Each method in a standard tie can be overriden by providing a callback to the tie call. So for instance if you wanted a tied hash that changed 'foo' into 'bar' on store you could say: tie my %hash, 'Tie::Hash::Method', STORE => sub { (my $v=pop)=~s/foo/bar/g if defined $_[2]; return $_[0]->base_hash->{$_[1]}=$v; }; The callback is called with exactly the same arguments as the tie itself, in particular the tied object is always passed as the first argument. The tied object is itself an array, which contains a second hash in the HASH slot (index 0) which is used to perform the default operations. The callbacks available are in a hash keyed by name in the METHOD slot of the array (index 1). If your code needs to store extra data in the object it should be stored in the PRIVATE slot of the object (index 2). No future release of this module will ever use or alter anything in that slot. The arguments passed to the tie constructor will be seperated by the case of their keys. The ones with all capitals will be stored in the METHOD hash, and the rest will be stored in the PRIVATE hash.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

openSUSE Leap 15.6

  1. Package perl-Tie-Hash-Method

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): Tied hash with specific methods overriden by callbacks

    0.02-bp156.3.1: noarch

    Source: perl-Tie-Hash-Method

openSUSE Tumbleweed

  1. Package perl-Tie-Hash-Method

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/Perl): Tied hash with specific methods overriden by callbacks

    0.02-1.32: noarch

    Source: perl-Tie-Hash-Method

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.