Name : perl-Acme-Your
| |
Version : 0.01
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.8.1
| Date : 2023-07-20 18:13:18
|
Group : Development/Libraries/Perl
| Source RPM : perl-Acme-Your-0.01-lp155.8.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : not our variables, your variables
|
Description :
Acme::Your gives you a language construct \"your\" that behaves similarly to Perl\'s own \"our\" constuct. Rather than defining lexically unqualified varibles to be in our own package however, you can define lexically unqualified variable to be from anothter package namespace entirely.
It all starts with the use statement.
use Acme::Your \"Some::Package\";
This both \'imports\' the your construct and states the package that any variables defined with a your statement will be created in.
Then you can do \'your\' statements. Note that these are lexical, and fall out of scope much the same way that our variables would. For example
use Acme::Your \"Fred\"
my $foo = \"bar\";
{ your $foo = \"wilma\"; print $foo; # prints \"wilma\" }
print $foo; # prints \"foo\" print $Fred::foo # prints \"wilma\"
Your allows you to import symbols from other packages into your own lexical scope and have access to them.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/15.5/noarch |