Perl Chomp Function - Perl Views : 260
Tagged in : Perl
0 0
Send mail

Perl Chomp Function


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

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

By Geethalakshmi, On - 2010-09-17



    Login to add Comments .