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
In reply to Re: Re (tilly) 3: Filehandles vs. Packages: And the winner is...
by converter
in thread Filehandles vs. Packages: And the winner is...
by converter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |