$ perl -e'STDOUT->foo' Can't locate object method "foo" via package "IO::File" at -e line 1. #### $ perl -e'use IO::File; IO::File::say( *STDOUT, "ok" )' Undefined subroutine &IO::File::say called at -e line 1. $ perl -e'use IO::File; IO::Handle::say( *STDOUT, "ok" )' ok $ perl -e'STDOUT->say( "ok" )' ok