www/p5-Catalyst-Controller-BindLex 0.05nb21 NetBSD
Put lexicals on the catalyst stash
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- Categories
- www, perl5
- Package size
- 8.7 KiB, 15.5 KiB installed
Description
This plugin lets you put your lexicals on the stash and elsewhere very easily.
It uses some funky modules to get it's job done: PadWalker, Array::RefElem, Devel::Caller, Devel::LexAlias and attributes. In some people's opinion this hurts this plugin's reputation ;-).
If you use the same name for two variables with the same storage binding attribute they will be aliased to each other, so you can use this for reading as well as writing values across controller subs. This is almost like sharing your lexical scope.
sub bar : Local { my ( $self, $c ) = @_;
my $x : Stashed;
my %y : Stashed;
$x = 100;
do\_something( $c->stash->{x} ); \# 100
$c->forward("gorch");
}
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | www/p5-Catalyst-Controller-BindLex | 0.05nb21 |
| DragonFly | www/p5-Catalyst-Controller-BindLex | 0.03_2 |
Install
Binary package:
pkgin install p5-Catalyst-Controller-BindLex
From pkgsrc:
cd /usr/pkgsrc/www/p5-Catalyst-Controller-BindLex && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.05nb21 |
| NetBSD 10.1 aarch64 | 0.05nb20 |
| SmartOS / illumos x86_64 | 0.05nb21 |
| macOS 15 arm64 | 0.05nb21 |
Dependencies
Run dependencies 6
No port depends on this one.