Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Extraneous behaviour of match variables

by ikegami (Pope)
on Nov 03, 2006 at 15:41 UTC ( #582107=note: print w/replies, xml ) Need Help??

in reply to Re^2: Extraneous behaviour of match variables
in thread Extraneous behaviour of match variables

(?:(?<!video).)+ is wrong.

for my $re ( qr/"(?:(?!video).)+"/, qr/"(?:(?<!video).)+"/, qr/"(?:.(?<!video))+"/, ) { print("$re\n"); for ( '""', '""', '"video..."', '"video"', ) { print("$_: ", /$re/?1:0, "\n"); } }
(?-xism:"(?:(?!video).)+") "": 0 "": 0 "video...": 0 "video": 0 (?-xism:"(?:(?<!video).)+") "": 0 "": 1 <----- XXX "video...": 0 "video": 1 <----- XXX (?-xism:"(?:.(?<!video))+") "": 0 "": 0 "video...": 0 "video": 0

(?:(?!video).)+ and (?:.(?<!video))+ should be equivalent. You can do benchmarks to be sure.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582107]
[erix]: hm, there's a FANN perl module - looks a bit old
[Cosmic37]: I'm afraid I don't know the answer to your map question...... what were the references too?
[corenth]: each reference was to a fairly small scaler.
[corenth]: I mean, array of scalers. usually triples.
[Cosmic37]: there is a FANN discussion group but seems to have gone quiet... http://leenissen. dk/fann/forum/ viewforum.php?f=18 &sid=1afc1fb3fa1a3 7f52b03e40d05cdaaa 3

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-02-20 18:31 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.