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 ☆☆☆☆ :)
In reply to Re^2: perldoc of s///ee wrong or just misleading?
by LanX
in thread perldoc of s///ee wrong or just misleading?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |