in reply to Smart::Comments source filter on or off .. post compile?
Write a wrapper script foo which runs exec perl /some/lib/foo.plx "$@" or exec perl -MSmart::Comments='###' /some/lib/foo.plx "$@" according to the option in question.