Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^4: Words in Words

by sarchasm (Acolyte)
on Sep 30, 2011 at 23:41 UTC ( #928962=note: print w/replies, xml ) Need Help??

in reply to Re^3: Words in Words
in thread Words in Words

I did change the path but it looks like the code is substringing words through itself. Here is what I get:

p in pogy's po in pogy's pogy in pogy's o in pogy's og in pogy's g in pogy's gy in pogy's gy's in pogy's y in pogy's y's in pogy's s in pogy's

The process needs to look for the word "pogy's" within another word in the list like "apogy's"

Replies are listed 'Best First'.
Re^5: Words in Words
by choroba (Bishop) on Sep 30, 2011 at 23:54 UTC
    Are you sure "p", "po", "pogy" etc. are not on the list, too? If you are interested just in the words contained in other words, just declare the %found outside of the outermost loop and print only $subword.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928962]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2018-04-20 21:14 GMT
Find Nodes?
    Voting Booth?