Search results for "perlx::*"
PerlX::Let - Syntactic sugar for lexical state constants
This module allows you to define lexical constants using a new "let" keyword, for example, code such as if (defined $arg{username}) { $row->update( { username => $arg{username} ); } is liable to typos. You could simplify it with { let $key = "usernam...
RRWO/PerlX-Let-v0.3.0 - 14 Jun 2023 20:35:21 UTC - Search in distribution
PerlX::bash - tighter integration between Perl and bash
There is one primary function, which is always exported: "bash". This takes several arguments and passes them to your system's "bash" command (therefore, if your system has no "bash"--e.g. Windows--this module is useless to you). Since "bash" is a sh...
BAREFOOT/PerlX-bash-0.05 - 09 Feb 2020 08:45:55 UTC - Search in distribution
PerlX::ifor - A version of for() that accepts iterator instead of list
CAVEAT: Yes, it's ugly and doesn't look like a regular for(). Sue Perl :-) TODO: Support other iterator, e.g. Array::Iterator....
PERLANCAR/PerlX-ifor-0.001 - 16 Apr 2019 11:49:32 UTC - Search in distribution
Task::PerlX - Perl dark magic materials
Task::PerlX is for developers who are interested in extending Perl syntax / keywords....
GUGOD/Task-PerlX-0.01 - 18 Sep 2009 07:18:59 UTC - Search in distribution
PerlX::Maybe - return a pair only if they are both defined
Moose classes (and some other classes) distinguish between an attribute being unset and the attribute being set to undef. Supplying a constructor arguments like this: my $bob = Person->new( name => $name, age => $age, ); Will result in the "name" and...
TOBYINK/PerlX-Maybe-1.202 - 14 Mar 2022 18:26:37 UTC - Search in distribution- Syntax::Feature::Maybe - use syntax qw/maybe/
PerlX::Range - Lazy Range object in Perl 5
PerlX::Range is an attemp to implement make range operator lazy. When you say: my $a = 1..10; This `$a` variable is then now a "PerlX::Range" object. Notice here that it's `$a` but not `@a`. "PerlX::Range" overrides the behavior of `..` operator to c...
GUGOD/PerlX-Range-0.05 - 18 Sep 2009 10:51:06 UTC - Search in distribution
PerlX::Assert - yet another assertion keyword
PerlX::Assert is a framework for embedding assertions in Perl code. Under normal circumstances, assertions are not checked; they are optimized away at compile time. However if, at compile time, any of the following environment variables is true, asse...
TOBYINK/PerlX-Assert-0.905 - 07 May 2017 07:43:35 UTC - Search in distribution
PerlX::Define - cute syntax for defining constants
PerlX::Define is a yet another module for defining constants. Differences from constant.pm: * Cute syntax. Like constant.pm, constants get defined at compile time, not run time. * Requires Perl 5.12 or above. If you're lucky enough to be able to free...
TOBYINK/PerlX-Define-0.101 - 09 Aug 2018 14:17:05 UTC - Search in distribution
PerlX::Window - sliding windows on a string or array
This module provides a sliding window over a long string or array. It exports two functions "window" and "window_pos", and two variables $window and @window. "window $string, $length" Calling this function returns the current window onto the string, ...
TOBYINK/PerlX-Window-0.004 - 16 Sep 2014 13:14:29 UTC - Search in distribution
PerlX::Perform - syntactic sugar for if (defined ...) { ... }
Executes some code if a given scalar is defined. Within the code block, the scalar is available as $_. Note that there is no comma before "wherever" here: my $foo = function_that_might_return_undef(); perform { say $_ } wherever $foo; But there is on...
TOBYINK/PerlX-Perform-0.006 - 10 Sep 2014 22:25:40 UTC - Search in distribution- Syntax::Feature::Perform - use syntax qw/perform/
PerlX::SafeNav - Safe-navigation for Perl
Background In many other languages, there is an operator (often "?.") doing "Safe navigation", or "Optional Chaining". The operator does a method-call when its left-hand side (first operant) is an object. But when the left-hand side is an undefined v...
GUGOD/PerlX-SafeNav-0.004 - 13 Jul 2023 12:05:14 UTC - Search in distribution- safenav - Safe-navigation for Perl
PerlX::ArraySkip - sub { shift; @_ }
The "arrayskip" function returns the entire list it was passed as arguments, except the first. This is an entirely trivial function and can be written as: sub arrayskip { shift; @_ } The principle of TIMTOWTDI says that there are other ways of skippi...
TOBYINK/PerlX-ArraySkip-0.004 - 18 Sep 2014 10:08:59 UTC - Search in distribution
PerlX::AsyncAwait - async/await keywords in pure perl
There should be details here but I'm shipping this now so the YAPC::EU crowd can play with it....
MSTROUT/PerlX-AsyncAwait-0.001003 - 11 Mar 2018 18:32:26 UTC - Search in distribution
PerlX::QuoteOperator - Create new quote-like operators in Perl
QUOTE-LIKE OPERATORS Perl comes with some very handy Quote-Like Operators <http://perldoc.perl.org/perlop.html#Quote-Like-Operators> :) But what it doesn't come with is some easy method to create your own quote-like operators :( This is where PerlX::...
DRAEGTUN/PerlX-QuoteOperator-0.08 - 02 Apr 2015 18:52:51 UTC - Search in distribution
PerlX::ScopeFunction - new keywords for creating scopes.
Scope functions can be used to create small lexical scope, inside which the results of an given expression are used, but not outside. This module provide extra keywords / methods / symbols for creating scopes that help grouping related statements tog...
GUGOD/PerlX-ScopeFunction-0.05 - 30 Oct 2023 14:00:01 UTC - Search in distribution
PerlX::MethodCallWithBlock - A Perl extension to allow a bare block after method call
PerlX::MethodCallWithBlock is A Perl extension that extends Perl syntax to allow one bare block follows normal methods calls. It translate: Foo->bar(1, 2, 3) { say "and a block"; }; Into: Foo->bar(1, 2, 3, sub { say "and a block"; }); The body of the...
GUGOD/PerlX-MethodCallWithBlock-0.05 - 17 Jun 2010 02:56:32 UTC - Search in distribution
PerlX::Maybe::XS - XS backend for PerlX::Maybe
Nothing to see here; move along....
TOBYINK/PerlX-Maybe-XS-1.001 - 21 Feb 2014 16:43:57 UTC - Search in distribution
PerlX::ArraySkip::XS - XS backend for PerlX::ArraySkip
Nothing to see here; move along....
TOBYINK/PerlX-ArraySkip-XS-0.004 - 16 Sep 2014 14:32:57 UTC - Search in distribution
PerlX::QuoteOperator::URL - Quote-like operator returning http request for the URL provided.
This module provides a Quote-like operator which returns a HTTP request using the LWP::Simple module. Please see PerlX::QuoteOperator for more detail on Quote-like operators. For now here is another example: use PerlX::QuoteOperator::URL 'qh'; use JS...
DRAEGTUN/PerlX-QuoteOperator-URL-1.02 - 07 Oct 2015 12:13:39 UTC - Search in distribution
PerlX::QuoteOperator::Inescapable - a quote-like operator with no string escapes
PerlX::QuoteOperator::Inescapable introduces a quote-like operator like "q(...)" but that supports no string escapes! All characters quoted are treated literally. Like other quote-like operators, standard left/right bracket pairs are supported; but u...
TOBYINK/PerlX-QuoteOperator-Inescapable-0.002 - 10 Sep 2014 23:10:06 UTC - Search in distribution