substring from 10 to 14 : substr « String « Perl
- Perl
- String
- substr
substring from 10 to 14
#!C:/perl/bin
$stringvalue = "Perl is a great language";
$anotherstring = substr($stringvalue, 10, 14);
print "\n\n\$anotherstring contains: $anotherstring \n\n";
Related examples in the same category