|Think about Loose Coupling|
Using multiple regex'sby leons (Pilgrim)
|on Jan 22, 2001 at 20:16 UTC||Need Help??|
leons has asked for the
wisdom of the Perl Monks concerning the following question:
There is something I am not too sure about and I hope you can give me some advice on ...
Right now I am writing something in which I use similar statements as the following ones:
I have the feeling that it is not very okay to use two regex's while using i.e. the $1,$2...
variables of one of them. In this case the $1 and $2 variables, come from the 2nd regex,
but are there similar situations in which this can cause trouble ? Or could this be some-
thing that might change in future Perl releases ? In other words, I was wondering whether
this is a safe thing to do.
Any help, advice, commentary or whatever is very welcome and highly appreciated
... et cetera .... Thanks ! ;-)
Romani Ite Domum