groups

name language licence
TTree aliases C++ Other
TNtuple simple analysis C++ Other
Table - default Latex Other
Rename a lot of files in a directory 2 Perl Other
Repeating string using the x operator Perl Other
Softlink to multiple files Perl Other
Substitution of one part of a string with another Perl Other
Substring Perl Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >



language: Perl
licence: Other

Substring

options: view full snippetsend to code collector
my $s = "The black cat climbed the green tree";
my $color = substr $s, 4, 5; # black

my $name = 'fred';
substr($name, 4) = 'dy'; 

	
(Continues...)