Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Regex to match ascending sequence

by Laurent_R (Canon)
on Oct 15, 2015 at 22:31 UTC ( [id://1145041]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex to match ascending sequence
in thread Regex to match ascending sequence

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found