in reply to Re (tilly) 3: Filehandles vs. Packages: And the winner is...
in thread Filehandles vs. Packages: And the winner is...
The arrow invocation produces the same result in this case:
$ perl -MCGI -e 'my $q = CGI->new(); open CGI, "~/foo.txt"; print ref +$q;' Can't locate object method "new" via package "IO::Handle" (perhaps you + forgot to load "IO::Handle"?) at -e line 1.
conv
|
|---|