In article <000f01c28d8e$ed4e4f80$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tin-Shan Chau) writes: >--Boundary_(ID_G2riuUEo9lO985lfAtLnbg) >Content-type: text/plain; charset=iso-8859-1 >Content-transfer-encoding: 7BIT > >Can anyone point me to an example of how to use the above module?
use Search::Dict; open my $fh, "/usr/dict/words" or die $!; my $lookfor = shift; look $fh, $lookfor; print "Found: " . <$fh>; close $fh; % ./example perl Found: permalloy >Some of my questions are: > >1. How should the input file be opened (as a text file or binary)? Text. >2. Do all lines have to have the same length? No. >3. Once I get the return line position (if I get that far), how do I retrieve the >line? <FILEHANDLE> -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]