Perl Chomp Function

by Geethalakshmi 2010-09-17 14:10:33

Perl Chomp Function


chomp removes the trailing 'newline' (\n) value from the end of a scalar variable.

$x = "value\n";
chomp($x); # $x = "value"

Tagged in:

823
like
0
dislike
0
mail
flag

You must LOGIN to add comments