From perlop, "«?pattern?» is just like the «/pattern/» search, except that it matches only once between calls to the reset() operator."
You clearly didn't mean to use the ?pattern? operator. Fix:
$o_vers = $1 if $STAGE[$j] =~ m{/rdbms/([\d.]+)/} ; $o_vers = $1 if $STAGE[$j] =~ m{/rdbms/patches/([\d.]+)/} ;
In reply to Re: Pattern matching & capturing strange behaviour.
by ikegami
in thread Pattern matching & capturing strange behaviour.
by NevilleG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |