I understand that Smart::Comments should not be used in production code, since it is a source filter.
However, I have been using Smart::Comments
in my development code and then commenting out the "use" line before sending the code to production.
Given that I'm going to use it in my development code, what I should specifically be concerned about? I've searched the Internet and not found any reasons that I should be worried except that source filters are "a bad idea" or "evil" or that they should never be used in production code.
UPDATE: I'm now using a key binding in vim to implement Sinan Ünür's approach:
map <Leader>c <Esc>:!perl -MSmart::Comments %<CR>