in reply to Trouble with back-references on Windows
echo "abcd" | perl -nle '/(b).(d)/ && print \"$1 $2\"'
Thanks poj!
I was using quotes for a more complicated regex earlier in the day (without the back-references) and found that it only worked with BOTH the backslash and the back-tick so I neglected to try it it in this instance.