@Gunnar Hjalmarsson:

>      use File::Spec;
>      my ($vol, $progdir);
>      BEGIN { ($vol, $progdir) = File::Spec->splitpath( __FILE__ ) }
>      use lib File::Spec->catpath( $vol, $progdir, 'libraries' );

At http://perldoc.perl.org/perldata.html it is stated that __FILE__ contains 
the current filename... can it be assumed that this includes the entire path at 
all platforms as well ? (I checked it under WinXP, which gives me the absolute 
path as required).

Since I'm not sure about the meaning of "use lib...", could I also write this 
one (I'm currently not on a computer with Perl available):

unshift(@INC,File::Spec->catpath($vol,$progdir,'mylib_directory')

Thank you for your efforts and help. It's really appreciated :-)

Tobias.


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to