in reply to Re: Using scalar variable in system set of commands
in thread Using scalar variable in system set of commands

Indeed. The backslashes before the pipes are also unnecessary.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^2: Using scalar variable in system set of commands