Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/chomp

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl chmod chop Keywords The chomp keyword chomp is the safer version of chop that removes any trailing strings that corresponds to the current value of $/, which is also known as the $INPUT_RECORD_SEPARATOR in the English module, and returns the total number of characters removed from all arguments. In paragraph mode ($/ = "" ), all trailing newlines from the string are removed. In slurp mode ($/ = undef) or fixed-length record mode ($/ is a reference to an integer or the like) chomp() will not remove anything. If VARIABLE is omitted, it chomps $_. If VARIABLE is a hash, it chomps the values of the hash and not its keys, and resets the each iterator. Syntax chomp VARIABLE chomp(LIST) chomp Perl chmod chop Keywords