in reply to Trouble with back-references on Windows

Any ideas?
echo "abcd" | perl -nle '/(b).(d)/ && print \"$1 $2\"'
poj
  • Comment on Re: Trouble with back-references on Windows

Replies are listed 'Best First'.
Re^2: Trouble with back-references on Windows
by randy1234 (Initiate) on Mar 14, 2019 at 19:30 UTC

    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.