[Vienna-pm] Speichervariablen in Regulaeren Ausdruecken

Christian 'arc' Schoeller c_p_s at gmx.net
Fri Jun 11 06:44:45 CDT 2004


On Thu, Jun 10, 2004 at 09:23:56PM +0200, Peter J. Holzer wrote:
[...]
> perldoc perlvar:
> 
> |   $<digits>
> |	   Contains the subpattern from the corresponding set of capturing
> |	   parentheses from the last pattern match, not counting patterns
> |	   matched in nested blocks that have been exited already.
> |	   (Mnemonic: like \digits.)  These variables are all read-only
> |	   and dynamically scoped to the current BLOCK.
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Die Die Variable $1, die Du nach dem Block ausliest, ist also nicht die
> gleiche Variable $1, die im Block befüllt wird.

Danke, das war es! Ich dachte immer, die Speichervariablen bleiben
unter allen Umstaenden bis zum naechsten erfolgreichen Mustervergleich
persistent.

    C.
-- 
Christian 'arc' Schoeller         | There is no justice. 
HTTP {http://cps.shellmaster.de}  | There is just me.
ICQ  {199627353}                  | --Death
MAIL {c_p_s at gmx.net}              | --Terry Pratchett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/vienna-pm/attachments/20040611/38233d01/attachment.bin


More information about the Vienna-pm mailing list