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
Connector::Tee(3) User Contributed Perl Documentation Connector::Tee(3)

Connector::Tee

This connector can be used to search for a value over multiple branches in a way that is transparent to the caller.

  class: Connector::Tee
  accept: "\\A[a-zA-Z]+\\z"
  branches:
   - static
   - conn1
   - conn2

  nodes:
    static:
       test1: NO
       test2: YES
       test3: 0
    conn1@: connector:connectors.conn1
    conn2@: connector:connectors.conn2

If the connector with the above configuration is called with get('test1'), the request is dispatched to nodes.static.test1 which evaluates to NO and is returned as the overall result.

If you call get('test3'), the result is NOT 0 as this does not match the regex given as accept pattern! The request is therefore resend to nodes.conn1.test3 which is revolved to another connector call. In case the result of this connector does also not match the pattern (or is empty), the same request is send to nodes.conn2.test3.

For the scalar get call, the value given to accept is evaluated as a case-sensitive regex pattern using qr// internally. If you set accept to the empty string, any defined value is accepted.

For get_hash, an empty value for accept will let the empty hash pass, if accept is set to any true value, only non-empty hashes are accepted.

For get_list, accept is ignored and only non-empty lists are accepted.

2022-02-04 perl v5.32.1

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

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