in reply to Convert text in paint to doc files

its called OCR, simply install tesseract program and use system to call it
system qw[ tesseract.exe foo.png foo.txt ]; my $text = read_file('foo.txt');
You may need to preprocess the images to help Tesseract, say using ImageMagick like:
system qw[ convert.exe -resize 200% image.jpg foo.png ];