UNIX ON-LINE Man Pages - Die Onlinehilfe

Die Syntax von Unixbefehlen wird in den entsprechenden Manpages dokumentiert. Hier können Sie diese Onlinehilfe für viele Standardbefehle abrufen.

Seiten auflisten, welche beginnen mit:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   ANDERE   ALLE
Tie::Hash::NamedCapturePerl)Programmers Reference Tie::Hash::NamedCapture(3pm)

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

           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 %-

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

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

perl v5.12.1                      2010-04-26      Tie::Hash::NamedCapture(3pm)

Scannen Sie den Barcode um die Webseite zu öffnen

Quelle: http://www.trinler.net/de/service/doc/linux/man.html?command=Tie%3A%3AHash%3A%3ANamedCapture
Gedruckt am: 20.10.2017 01:42 GMT+0200 (2017-10-20T01:42:47+02:00)