chomp

# given "name, age, dob, email\n"

$string->chomp; # name, age, dob, email

The chomp method is a safer version of the chop method, it's used to remove the newline (or the current value of $/) from the end of the string. Note, this method modifies and returns the string. This method returns a string object.

chomp() : StrObject

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 20:

Unknown directive: =description

Around line 27:

Unknown directive: =signature

Around line 31:

Unknown directive: =type