Perl substr Function to strip leading character in the string

by kalai 2009-08-08 11:01:29

In perl Function to strip leading character in the string we can use substr function.

$add = substr $string, 1;

In the above code first character in '$string' is stripped
off and remaining character is stored in '$add'

Tagged in:

1623
like
0
dislike
0
mail
flag

You must LOGIN to add comments