If the regex matches, then the two variables have values -- one can not be defined if the other isn't. Thus, merlyn's code does the right thing.
japhy --
Perl and Regex Hacker
In reply to (japhy) Re: Re: Re: regex for assignment
by japhy
in thread regex for assignment
by mkmcconn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |