Perl Chop Function

by Geethalakshmi 2010-09-17 14:11:06

Perl Chop Function


chop removes the last character from a variable.

$x = "abcdefg";
chop($x); # $x= abcdefg
$a = chop($x); # $a = g, $x = abcdef

Tagged in:

804
like
0
dislike
0
mail
flag

You must LOGIN to add comments