Please forgive my ignorance up front. I'm very much a beginner. Ok, I'm trying to be able to look at the individual characters of a string with the ultimate hope of being able to parse messages based on a series of messages of variable length. I thought I had found the answer with the following text:
use String; $str = new String("$line[0]"); print "The string is '$str\n"; printf("Length of the string is %d characters\n", $str->length); printf("The first character of the string is %s\n", $str->charAt(0)) But, when I run the program I get the following error: Can't locate String.pm in @INC (@INC contains: /System/Library/Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at ItchExercise.pl line 8. BEGIN failed--compilation aborted at ItchExercise.pl line 8. Is there a substitute I can use? Or can I download something somewhere? Help! And thanks in advance!