in reply to Re: perl expect
in thread perl expect

Just a raw beginner's question but in the last line of this code - what does the 'gr' in gr'[#>:] $' mean? I realize he's looking for the prompt at the end of a line but I can't find a reference to the 'gr' syntax anywhere.

Replies are listed 'Best First'.
Re^3: perl expect
by Anonymous Monk on Dec 07, 2016 at 19:57 UTC

    See qr/STRING/msixpodualn in Regexp Quote Like Operators:

    This operator quotes (and possibly compiles) its STRING as a regular expression. ...
      Thanks! I very much appreciate it.