You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/06/29 19:38:57 UTC
portability: catfile vs ../..
I'm looking at the Build.pm in 2.0 and I see that it uses both
File::Spec::catfile() and unix '/' hardcoded paths. I know that catfile()
is used to make the code portable, but I want to understand when this
should be used an not '/'. Thanks!
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: portability: catfile vs ../..
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 30 Jun 2001, Stas Bekman wrote:
> I'm looking at the Build.pm in 2.0 and I see that it uses both
> File::Spec::catfile() and unix '/' hardcoded paths. I know that catfile()
> is used to make the code portable, but I want to understand when this
> should be used an not '/'. Thanks!
should probably always use catfile and friends. /'s were in there before
i started that habit.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org