in reply to Re: I can't see why this shorthand doesn't behave like the verbose form
in thread I can't see why this shorthand doesn't behave like the verbose form

Really? Your script works as expected on this machine. I suppose you might have a severely broken JSON::XS - that's the only place I can see it possibly breaking. Tried JSON::PP?

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^2: I can't see why this shorthand doesn't behave like the verbose form