in reply to Pattern matching & capturing strange behaviour.
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.]+)/} ;
|
|---|