in reply to Re^4: How can we interpolate an expression??
in thread How can we interpolate an expression??

Excellent, tobyink! I enjoy what it says there:

Discovered by Larry Wall, 1994.

It's the Discovered part that's intriguing...

  • Comment on Re^5: How can we interpolate an expression??

Replies are listed 'Best First'.
Re^6: How can we interpolate an expression??
by tobyink (Canon) on Sep 21, 2012 at 05:49 UTC

    A number of Perl's "features" are actually bugs that were discovered, found to be useful and have been documented and carefully preserved. One that springs to mind is that s/.../.../ee evaluates twice, s/.../.../eee evaluates thrice, etc.

    I have a feeling that the baby cart is one of these.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'