Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
print substr("knight",1), "\n"; # strip first character
|
||||
print substr("socks", 0, -1), "\n"; # strip last character
|
||||
print substr("brooms", 1, -1), "\n"; # strip both first and last characters
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
$string = 'ouch';
|
||||
$bits = chop($string); # The last letter is returned by the chop function
|
||||
print $bits; # h
|
||||
print $string; # ouc # See we really did chop the last letter off
|
||||
Loading…
Add table
Add a link
Reference in a new issue