---
name: "Syntax::Feature::Junction"
section: "3pm"
platform: "linux"
package: "libsyntax-keyword-junction-perl"
version: "0.003009-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Syntax::Feature::Junction"
---

# Syntax::Feature::Junction(3pm)

Provide keywords for any, all, none, or one

## NAME

Syntax::Feature::Junction - Provide keywords for any, all, none, or one

## SYNOPSIS

```
  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.

## 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 \<frioux+cpan@gmail.com\>

- •

  Carl Franks

## COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
