Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Regular Expression: search two times for the same number of any signs

by Anonymous Monk
on Nov 29, 2016 at 11:38 UTC ( [id://1176793]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular Expression: search two times for the same number of any signs
in thread Regular Expression: search two times for the same number of any signs

Hi Hauke,

Took me a while to understand your code !! I can learn a lot out of it. Thanks !!!

But one question: I never saw // before. What is // ?

You use "extract($_)//'invalid'" to print 'invalid' if the sub returns nothing.

Can I do more with // ?

  • Comment on Re^2: Regular Expression: search two times for the same number of any signs

Replies are listed 'Best First'.
Re^3: Regular Expression: search two times for the same number of any signs
by hippo (Bishop) on Nov 29, 2016 at 12:01 UTC

    It's the defined-or operator. See perlop for full details.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found