> perl -wle "sub foo {}; eval { foo()='baz' }" Can't modify non-lvalue subroutine call in scalar assignment at -e line 1, near "'baz' }" Execution of -e aborted due to compilation errors. #### > perl -wle "sub foo:lvalue {}; eval { foo()='baz' }"