> Hm, that's not quite right. It updates %INC as soon as it can open a filehandle and start reading, but I don't think it ever updates @INC unless you ask it to (e.g. by 'use lib' or -I on the command line, or mucking with it manually). >
sorry my typo. it is %inc not @inc. if perl updates %inc as soon as it open and begin read the file, then it explain my question. thanks. >> >> use EDAMUserStore::UserStore; >> >> use EDAMUserStore::Types; >> use EDAMNoteStore::NoteStore; >> use EDAMNoteStore::Types; >> use EDAMErrors::Types; >> use EDAMLimits::Types; >> use EDAMTypes::Types; >> >> Since these modules exist in the same library dir as Evernote.pm. >> (in my OS it's /usr/local/share/perl/5.10.0/Net/Evernote.pm) >> But their names are not began with "Net::“ as they should be. >> (in my OS, they are >> /usr/local/share/perl/5.10.0/Net//EDAMUserStore/Types.pm etc). >> >> >> This seems a Chicken-egg question, but my solution does work... >> Any futher suggestion? > > > Well, why do you have those private packages? If they are useful on their own, it would make more sense to just install them in their own directories. For point of reference, I think that this is what List-Scalar-Utils does. >