Jeremy,

Is there a method in the File::Spec module, that returns the path directories in
a list no matter what the OS? Is so, wouldn't the File::Spec module, be able to
handle the need for the use of the $splitchar and the need to build the list of
dirctories via a loop? Perhaps there is no function/method to get the path in a
list? If there isn't then the @dir must still be built via the loop, so this
would not help. If you look at the rest of Jenda's Which.pm you might see what I
mean.

John

Jeremy Wadsack wrote:

> John Pataki ([EMAIL PROTECTED]):
>
> > Actually,
>
> > I would bet that the other instances of detecting the OS could be resolved
> > using the File::Spec module as well?
>
> > I have attached Jenda's Which.pm Version 0.3
>
> I'm not sure what you mean John.
>
> I suggested File::Spec to portably handle file operations (adds VMS
> and Mac to Unix and Windows support already done).
>
> The OS detection for MSWin is because Windows considers 'perl' to be
> executable even when the file is 'perl.exe' (this the extension list).
> I don't think this applies to any other OS. Other OSes (and Windows,
> too) have associations. But adding that to this would make almost ANY
> file exectuable (e.g. *.html opens a web browser) and that's now the
> point of the 'which' command.
>
> Maybe you can give an example?
>
> --
>
> Jeremy Wadsack
> Wadsack-Allen Digital Group

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to