good chemistry is complicated,and a little bit messy -LW PerlMonks

### Re^3: Golf for unique digits (17)

by BrowserUk (Pope)
 on Jan 09, 2013 at 18:52 UTC ( #1012542=note: print w/replies, xml ) Need Help??

in reply to Re^2: Golf for unique digits (17)
in thread Golf for unique digits

tye++ ... but I'm stuck to understand how it works?

According to perlop:

Searches a string for a pattern, and if found, replaces that pattern with the replacement text and returns the number of substitutions made.

How does the number of substitutions made equate to the number of characters left after the substitutions?

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Golf for unique digits (17)
by LanX (Chancellor) on Jan 09, 2013 at 19:05 UTC
>How does the number of substitutions made equate to the number of characters left after the substitutions?

(?!..) = not followed by!

every cipher is exactly once the last of it's kind! =)

Cheers Rolf

Of course! Thanks.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Create A New User
Node Status?
node history
Node Type: note [id://1012542]
help
Chatterbox?
 LanX wished he could vote in Britain

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-06-23 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
How many monitors do you use while coding?

Results (553 votes). Check out past polls.