Beefy Boxes and Bandwidth Generously Provided by pair Networks
Bob Perl: the Markov chain saw  Re^7: partial match between 2
files  by Kenosis (Curate) on Dec 08, 2012 at 16:15 UTC
( #1007902=note: print w/ replies, xml ) Need Help??  in reply
to Re^6: partial match between 2 files in thread partial match
between 2 files       Hope this helps!  Comment on Re^7: partial
match between 2 files Select or Download Code Re^8: partial
match between 2 files by lakssreedhar (Acolyte) on Dec 27, 2012
at 07:10 UTC      How can i do a partial match between a word
inputted through STDIN and a list of words in a file and print
the partial matched word from the file.        How can i ...
Write some code? STDIN is just a filehandle, readline from it
I need to print the word in the file which has the maximum
partial match to the inputted if the inputted string is fallen
and the file has words fal,fall,falle,the value to be printed is
falle.The code below gives errors          #!/usr/bin/perl-w use
warnings; us