Damus
Henrik Pauli profile picture
Henrik Pauli
@Henrik Pauli
Thing that just bit me because #Perl is not quite timtoady 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)
1
Gene Boggs · 8w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqm8fylsm6sengpxkkfcxthwh4x7xgkra6pyew4yta2v4yr5ldn73qt8fdzn And `$foo = pop @{split /bla/, $str}` doesn't work either. Hm