D
David Smith
Pardon the rookie question, but I haven't been able to find an answer
in either the Camel book or a web search.
I'm coming to Perl from a Java background... where you import classes
using a fully-qualified name, and then generally make use of it using
the base class name:
import myapp.dataojects.User;
....
User myUser = new User();
I've been emulating the same convention as far as organizing my Perl
modules in a directory structure based on functionality. However, I
find that when using them I have to always use the fully-qualified name:
use MyApp:
ataObjects::User;
....
my $myUser = MyApp:
ataObjects::User->new();
Is there any syntax by which I could access Perl objects by using the
object name alone, rather than the fully-qualified name? Such as this:
use MyApp:
ataObjects::User;
....
my $myUser = User->new();
in either the Camel book or a web search.
I'm coming to Perl from a Java background... where you import classes
using a fully-qualified name, and then generally make use of it using
the base class name:
import myapp.dataojects.User;
....
User myUser = new User();
I've been emulating the same convention as far as organizing my Perl
modules in a directory structure based on functionality. However, I
find that when using them I have to always use the fully-qualified name:
use MyApp:
....
my $myUser = MyApp:
Is there any syntax by which I could access Perl objects by using the
object name alone, rather than the fully-qualified name? Such as this:
use MyApp:
....
my $myUser = User->new();