Use of uninitialized value in length at C:\temp\ws.pl line 15. Use of uninitialized value in printf at C:\temp\ws.pl line 15. [0] '' [242] ' I need to extract the first several words from a paragraph of text contained in a $var, so as to get the longest extract that's less than or equal to 200 characters. My brute-force-and-ignorance method is: blah some more text here etc etc ' [194] 'I need to extract the first several words from a paragraph of text contai ned in a $var, so as to get the longest extract that's less than or equal to 200 characters. My brute-force-and-ignorance'