According to perldoc -f delete, it returns the deleted value, not a Boolean. And,
$ perl -E 'my %foo = qw{ bar 42 }; say delete $foo{bar};'
in fact prints 42.
In reply to Re^3: Why doesn't exist work with hash slices?
by Anonymous Monk
in thread Why doesn't exist work with hash slices?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |