in reply to Re: upgrade perl w/same config?
in thread upgrade perl w/same config?

As long as we're talking perl, why not use a perl one-liner instead of sed and grep...
perl -V':.*' | perl -ne '/^PERL_|^api_|5\.6\.0/ or s/^/-D/, print'

-Blake