Perl:Substring

From Progzoo

Use substr(a,b) to get part of a string.

substring(5,2) extracts 2 characters from position.

0123456789101112
One two three
four five six



[Font] [Default] [Show] [Resize] [History] [Profile]

Use substr(a) to get part of a string.

substr(5) extracts characters form position 5 to the end.

0123456789101112
One two three
four five six



[Font] [Default] [Show] [Resize] [History] [Profile]