perl -MCGI -e 'my $q = CGI->new(); open CGI, "~/foo.txt";' Can't locate object method "new" via package "IO::Handle" at -e line 1.