Thing that just bit me because #Perl is not quite dwimmy sometimes:
```
my $foo = pop split(/bla/, $str);
```
(can't pop scalar in modern Perl and this construct puts split into scalar context I guess and that's not fun for pop)
(wanted to avoid the ugly `(...)[-1]` construct)
This entry was edited (1 week ago)

Bill Ricker
in reply to Henrik Pauli • • •Henrik Pauli
in reply to Bill Ricker • • •fuzzix (@fuzzix@mastodon.ie)
fuzzix (mastodon.ie)