Upstream software project

perl-MooseX-Attribute-ENV

Set default of an attribute to a value from %ENV

About perl-MooseX-Attribute-ENV

Set default of an attribute to a value from %ENV

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-MooseX-Attribute-ENV: 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-MooseX-Attribute-ENV
Publisher
Not authoritatively mapped
Native package records
2
Operating systems
opensuse-leap-15-6, opensuse-tumbleweed
License expression
Artistic-1.0 or GPL-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.

This is a Moose attribute trait that you use when you want the default value for an attribute to be populated from the %ENV hash. So, for example if you have set the environment variable USERNAME = 'John' you can do: package MyApp::MyClass; use Moose; use MooseX::Attribute::ENV; has 'username' => (is=>'ro', traits=>['ENV']); package main; my $myclass = MyApp::MyClass->new(); print $myclass->username; # STDOUT => 'John'; This is basically similar functionality to something like: has 'attr' => ( is=>'ro', default=> sub { $ENV{uc 'attr'}; }, ); but this module has a few other features that offer merit, as well as being a simple enough attribute trait that I hope it can serve as a learning tool. If the named key isn't found in %ENV, then defaults will execute as normal.

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-MooseX-Attribute-ENV

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): Set default of an attribute to a value from %ENV

    0.02-bp156.3.1: noarch

    Source: perl-MooseX-Attribute-ENV

openSUSE Tumbleweed

  1. Package perl-MooseX-Attribute-ENV

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/Perl): Set default of an attribute to a value from %ENV

    0.02-2.32: noarch

    Source: perl-MooseX-Attribute-ENV

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.