"D. Beverly" <slowdive@mindspring.com> [snip] } }For the most part it's a trivial matter to add the -I switch when calling }perl, but I'm wondering why prepending paths to @INC in the script itself }doesn't seem to work when called from MPW? Some of my scripts do just }this, in which case it becomes slightly non-trivial to have to remember }the lib search paths to pass from MPW (yes, I could move these lib folders }into the main lib folder, but I shouldn't have to). These scripts work }fine using the MacPerl app. If you're adding paths to @INC by unshifting or pushing them on, it's because "use" happens before anything else. Adding paths to @INC doesn't happen this way until after (Mac)Perl has failed to find the libraries. But there's a solution: use lib LIST; which adds libraries to @INC at compile time. (LIST of course is a Perl list of paths). } }So, is this a "feature" of the MacPerl tool (or MPW even), or am I just }doing something wrong? } }Thanx, } }Dave Beverly }Fayette Publishing Inc. } }--- }smash the control images... }smash the control machines... } }just say no to Bill }(Gates or Clinton, take yer pick) } } }***** Want to unsubscribe from this list? }***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch --- Paul J. Schinder NASA Goddard Space Flight Center Code 693, Greenbelt, MD 20771 schinder@pjstoaster.pg.md.us ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch