http://www.perlmonks.org?node_id=443104


in reply to Re^4: Stupid mistakes I repeatedly make
in thread Stupid mistakes I repeatedly make

It also lets you do:
sub foo { my $param = shift || croak 'Param must be supplied'; }