You a Perl GOD? Prove it!
Hey all!
Since I am a rather lazy person :D (too lazy for my own good), I was wondering if any of you perl godz would like to help a lazy-ass person like me... What I am looking for is a script that accepts a single word (scrambled) as input, finds all the permutations of letters in that word, and searches for each permutation in a text file (such as /usr/share/dict/linux.words). Once a match is found, it should be dumped to STDOUT/STDERR. I looked at the perldocs, and there's a sample permuting function there, which works, but I'm too lazy to change it to suit my needs. :D I am even too lazy to solve newspaper scrambled word puzzles on my own... ;) :p |
are we really supposed to find it amusing that you are this lazy? what's the point in it being in perl if you don't even want to understand it. a little bit of effort makes the world go round, this is just insulting i think.
|
Re: You a Perl GOD? Prove it!
Quote:
|
Re: Re: You a Perl GOD? Prove it!
Quote:
|
No, we will *not* be doing any of your homework for you today!
|
Quote:
Code:
[rouben@homenet rouben]$ ./unscramble Code:
#!/usr/bin/perl |
cool....so u did your homework at last. :D
cheers mate! |
Hehe! :) I was only joking if you guys couldn't tell already!
|
Quote:
|
why dun you do computer science? i think you can do better in this field.....
|
Quote:
|
and it looks like no one's able to to better than you yet sewer primate. lol!
don't look at me... never touched perl before... ;) |
Quote:
Code:
#!/usr/bin/perl |
that looks diabolical enough. deserves a certain kind of cackle there. lol!
|
Quote:
|
All times are GMT -5. The time now is 04:15 PM. |