Because you have quoted it we know what was there. As a minor pedant chomp will remove any char that corresponds to $/ aka the $INPUT_RECORD_SEPARATOR. For example if you undef $/ but don't localise (or restore) it chomp will mysteriously fail. Not only that it is a global.....
cheers
tachyon
In reply to Re^3: Chop command that removes the first character
by tachyon
in thread Chop command that removes the first character
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |