in reply to Re: perldoc of s///ee wrong or just misleading?
in thread perldoc of s///ee wrong or just misleading?

> If hypothetically $& was assignable to, then the following are roughly equivalent:

maybe better

s/PAT/STR/ <=> m/PAT/ && $& = "STR"; s/PAT/CODE/e <=> m/PAT/ && $& = do {CODE}; s/PAT/CODE/ee <=> m/PAT/ && $& = eval do {CODE}; s/PAT/CODE/eee <=> m/PAT/ && $& = eval eval do {CODE}; ... and so on

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)