sub my_sub { my $argument = shift || $_; # do things with $argument }