develooper Front page | perl.perl5.porters | Postings from September 2005

Re: Pls. Review patch@25626 - VMS::Filespec update.

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
September 28, 2005 14:34
Subject:
Re: Pls. Review patch@25626 - VMS::Filespec update.
Message ID:
20050928213350.GC27680@windhund.schwern.org
On Wed, Sep 28, 2005 at 04:44:15PM -0400, John E. Malmberg wrote:
> >So I guess what I'm saying here is I'm happy to code to the lowest common
> >denominator, or there is no intersection to do things like "if this
> >system has feature X, do Y".  What I do not want is "if this *VMS* system 
> >has feature X, do Y."
> 
> Unfortunately I can see no way to avoid the check for an OS name and 
> then if there then is an OS setting and maintain backwards compatibility 
> with older Perls where that OS setting was not even considered as a 
> possibility.

Put the logic in a module.  Put the module on CPAN.

And this part is really my fault.  I've been meaning to write 
File::System::Spec and Operating::System::Spec for a long time now to allow
easy answers to just these sorts of questions.

It would wrap up the implementation details of discovering this information,
such as calling VMS::Filespec.


-- 
Michael G Schwern     schwern@pobox.com     http://www.pobox.com/~schwern
Stabbing you in the face for your own good.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About