GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYNTAX::FEATURE::JUNCTION (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 0.003008

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.

AUTHORS

o Arthur Axel fREW Schmidt <frioux+cpan@gmail.com>
o Carl Franks

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SYNTAX::FEATURE::JUNCTION (3) 2014-07-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.