Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: meaning for the code

by Pancho (Pilgrim)
on Mar 12, 2008 at 12:58 UTC ( [id://673724]=note: print w/replies, xml ) Need Help??


in reply to meaning for the code


Also the two ?: symbols at the beginning of the sets of parens make the parens non-capturing, in other words whatever is matched within the parens is not stored as a variable... BUT the parens within those parens that don't start with ?: will capture whats matched in a variable... If you like to tinker with things take the symbols out and see what happens...
($whole,$deci) = /(?:(\d*)\.?(\d+))|(?:(\d+)\.?(\d*))/;
Pancho

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-07-23 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.