#!/usr/bin/perl my $string = "abcde"; print "The length of $string is " . length ($string) . "\n"; print "The substring of $string from 2, 2 chars long, is " . substr($string, 2, 2) . "\n";
See http://perldoc.perl.org/functions/substr.html and http://perldoc.perl.org/functions/length.html in reverse order. HTH! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/