Not such a smart thing generally. Chop will remove the last character regardless of what it was. If it was a multiple character sequence then you have stuffed things for chomp - it won't remove the mutliated line end sequence. If it was a single character then the chomp is not required. In neither case is chomp going to do anything useful following chop.
chomp first to remove the line end sequence (which may comprise many characters if $/ has been altered) and then chop if you really want to always remove the last character (doesn't happen often actually).
In reply to Re^2: help with REGEXP to remove carriage return and caret from end
by GrandFather
in thread help with REGEXP to remove carriage return and caret from end
by Bennco99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |