# $_ is set somewhere else to a value, e.g. through readline(). # The user programs a bug and $foo is unexpectedly still undef. print trim($foo, 4); # is expected to operate on $foo, but # really returns the first 4 characters of $_