in reply to Re: Re: Re: Here's a quick example why not to use Indirect notation
in thread Perl High School
You get an error saying that main::FOO() could not be found. That's not a good error.package Foo; sub new { return bless {}, shift; } -------- use Foo; my $bar = new FOO();
Direct notation is put there for a purpose. I think that indirect notation was a bad idea all around, put in to pander to another community that looks down on Perl usage to begin with. *shrugs*
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re: Here's a quick example why not to use Indirect notation
by dws (Chancellor) on Feb 22, 2002 at 21:13 UTC |