in reply to Re^2: Regex to match ascending sequence
in thread Regex to match ascending sequence
is just syntactic sugar for various constructs such as:$c //= $d;
or$c = defined $c ? $c : $d;
Update: I've just quickly tried on an old VMS platform with Perl 5.8.6 with this regex definition:$c = $d unless defined $c;
it still does not seem to work.$regex = qr# (\d) (??{ my $c = $1 unless defined $c; ++$c })+ #x;
|
|---|