What do you want to save?
Add Code snippet
New code examples in category Perl
-
Hyrum Tanner 2021-09-23 22:20:02
perl get first characters
# For Perl (language) only # syntax substr(<your-string>,0,<characters-to-extract>) # example substr("Cool, isn't it!",0,4) # application my $sRandom = "Cool, isn't it!"; my $s1stFewChars = substr($sRandom,0,4); print &... Add solution -
Silkyss 2021-09-03 20:27:03
perl last characters
# For Perl (language) only # syntax substr(<your-string>,-<characters-to-extract>) # example substr("Glass half empty, glass half full",-15) # application my $sRandom = "Glass half empty, glass half full"; my $sLastFewC... Add solution