I am trying to use perl's handy non-greedy search pattern but I am having zero luck getting perl to search and replace on specified lines like:
perl -pi -e '10,19s/pat1/pat2/g' file
which I do often using sed. Is there a way to achieve this using perl? I'm in a jam where sed's non-greedy cannot do what I need but perl's will.