Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: No questions. Just a "thank you for named captures" !!

by Arunbear (Parson)
on Feb 06, 2013 at 17:26 UTC ( #1017476=note: print w/replies, xml ) Need Help??


in reply to Re: No questions. Just a "thank you for named captures" !!
in thread No questions. Just a "thank you for named captures" !!

Python also had named captures before Perl, but why does it matter who had it first? Or do you mean It's a shame that Perl did not support them sooner than it did?
  • Comment on Re^2: No questions. Just a "thank you for named captures" !!

Replies are listed 'Best First'.
Re^3: No questions. Just a "thank you for named captures" !!
by tobyink (Abbot) on Feb 07, 2013 at 16:54 UTC

    Strangely PCRE (the Perl Compatible Regular Expression engine) also added support for named captures several years before Perl.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re^3: No questions. Just a "thank you for named captures" !!
by sedusedan (Monk) on Feb 07, 2013 at 16:42 UTC
    Perhaps shame is too strong a word. How about 'it would be cool if Perl came up with named capture instead of other languages, remembering that Perl was/is kind of the state-of-the-art for regex stuffs.'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017476]
help
Chatterbox?
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....
[stevieb]: ++ atcroft

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2017-04-29 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.