• Aucun résultat trouvé

SEE ALSO

N/A
N/A
Protected

Academic year: 2022

Partager "SEE ALSO"

Copied!
1
0
0

Texte intégral

(1)

Perl version 5.10.0 documentation - Tie::Hash::NamedCapture

Page 1 http://perldoc.perl.org

NAME

Tie::Hash::NamedCapture - Named regexp capture buffers

SYNOPSIS

tie my %hash, "Tie::Hash::NamedCapture";

# %hash now behaves like %+

tie my %hash, "Tie::Hash::NamedCapture", all => 1;

# %hash now access buffers from regexp in $qr like %-

DESCRIPTION

This module is used to implement the special hashes %+ and %-, but it can be used to tie other variables as you choose.

When the all parameter is provided, then the tied hash elements will be array refs listing the

contents of each capture buffer whose name is the same as the associated hash key. If none of these buffers were involved in the match, the contents of that array ref will be as many undef values as there are capture buffers with that name. In other words, the tied hash will behave as %-.

When the all parameter is omitted or false, then the tied hash elements will be the contents of the leftmost defined buffer with the name of the associated hash key. In other words, the tied hash will behave as %+.

The keys of %--like hashes correspond to all buffer names found in the regular expression; the keys of %+-like hashes list only the names of buffers that have captured (and that are thus associated to defined values).

SEE ALSO

perlreapi, re, "Pragmatic Modules" in perlmodlib, "%+" in perlvar, "%-" in perlvar.

Références

Documents relatifs

Mechanisms that provide such integrity checks based on a secret key are usually called message authentication codes (MACs). Typically, message authentication codes are used

I am th e undersigned below, declare my consent to inscribe the arts of (Traditional Craft Skills and Arts of AI-Naoor Industry) on the Representative List of the

We will now discuss an application of the results obtained so far in the case in which we deal with a certain type of exponential one-parameter convolution semigroup of

This document describes a family of Initial Connection Protocols (ICP’s) suitable for establishing one pair of connections between any user process and any server process,

être j’aurais été tu aurais été il / elle aurait été nous aurions été vous auriez été ils / elles auraient été.. avoir j’aurais eu tu aurais eu il / elle

First edition limited to 600 numbered copies all accompanied by a 10 x 14,6 cm sticker... The Future

In this section, we briefly assess the existing body of knowledge and define three constructs to avoid the jingle fallacy (constructs with the same name referring

Group-based learning is seen as a form of experiential learning and it has been termed differently through the years: (a) small group learning (Springer et al., 1999)