what is perl chomp-chomp command-chomp Example-chomp function-chomp string?
Perl Chomp:
Chomp removes value of $/. normally $/ variable will have \n(newline) as its default variable. But we can change that to some other values for major level of stuffs, if we want.
Unix/Linux Kind of File formats will be separated based on newlines
like,
1st line \n
2nd line \n
those two lines will be separated based on newline that is input record separator. in perl its defined using $/ variable.
Chomp removes value of $/. normally $/ variable will have \n(newline) as its default variable. But we can change that to some other values for major level of stuffs, if we want.
Unix/Linux Kind of File formats will be separated based on newlines
like,
1st line \n
2nd line \n
those two lines will be separated based on newline that is input record separator. in perl its defined using $/ variable.
Labels: chomp in perl, chomp in python, chomp perl example, chomp unix, chop and chomp in perl, chop function in perl, kaavannan perl blogspot, perl chomp returns 1, stdin in perl