3 ms·
My favorite examples from Perl. The reset function. The dump function. And the fact that pos($x) = pos($x) is NOT a no-op. (It clears an internal flag allow
by btilly 16y ago
My favorite examples from Perl. The reset function. The dump function. And the fact that pos($x) = pos($x) is NOT a no-op. (It clears an internal flag allowing a zero-length regular expression to match again. Yes, I've used this.)
Another fun one is that in Perl that local can operate on data structures. As in local $foo{bar}. (I use this every so often in recursion sanity checks. But it is still an odd feature.)