-this works just fine, but is there any chance to dereference it somehow as ${$shift}+=2; ? without interim variable?$a = 5; $add2= sub{ $b = shift; $$b+=2;}; &$add2(\$a);
In reply to shift implicit dereference by Lennotoecom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |