amit hetawal wrote: > Hello Bill > Thanks for your help... > i got the initial part running but now i have so read the text from a > large text file havin all the sentences and special characters and in > that i have to get the trigrams working and not only for the above text > ...can you please suggest how should i format the file and access the > hash values which i store for all of the whole text ... > a tri gram with 'ab_' will also work since i have to consider the space > as a character ...too..
You can remove the ' ' checks to add spaces to your legal character set. You don't have to format the file unless I'm missing something. You could join the file into a single string to process more than the one line. chomp each line as it's read into an array and then $_ = join ' ', @array; will get it into a single string (with ' ' as separator instead of \n) assuming that's what you want. Supply a complete code snippet that shows what you are trying to do and explain where it fails to do what you want and we'll give you a hand fixing it. _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
