Syntax::Feature::Junction(3pm)

Syntax::Feature::Junction3pm

Provide keywords for any, all, none, or one

Usage

  use syntax 'junction';
  if (any(@grant) eq 'su') {
    ...
  }
  if (all($foo, $bar) >= 10) {
    ...
  }
  if (qr/^\d+$/ == all(@answers)) {
    ...
  }
  if (all(@input) <= @limits) {
    ...
  }
  if (none(@pass) eq 'password') {
    ...
  }
  if (one(@answer) == 42) {
    ...
  }

or if you want to rename an export, use Sub::Exporter options:

  use syntax 'junction' => {
    any => { -as => 'robot_any' }
  };
  if (robot_any(@grant) eq 'su') {
    ...
  }

The full documentation for this module is in Syntax::Keyword::Junction. This is just a way to use the sugar that syntax gives us.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8–10
  2. 11
  3. 12
  4. 13

Bugs

Please report any bugs or feature requests on the bugtracker website <https://github.com/haarg/Syntax-Keyword-Junction/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Authors

•

Arthur Axel "fREW" Schmidt <[email protected]>

•

Carl Franks

From libsyntax-keyword-junction-perl 0.003009-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.