logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Maildir append mode requires reading the whole box?: msg#00021

Subject: Re: Maildir append mode requires reading the whole box?
On Tue, Nov 11, 2003 at 12:22:41PM +0100 Mark Overmeer wrote:
> * Tassilo von Parseval (tassilo.parseval@xxxxxxxxxxxxxxxxxxx) [031111 12:03]:
> > On Tue, Nov 11, 2003 at 11:17:44AM +0100 Mark Overmeer wrote:
> > > I want to support Unix (and MacOSX and cygwin) and Windows.  Are there
> > > any problems with using "$dir/$file"?  I heard that Windows is accepting
> > > a forward slash ('/') as valid alternative to the usual back slash ('\')
> > > Is that true?  (I never use Windows or cygwin)
> > 
> >     my ($separator) = File::Spec->catfile($dir, $file) =~ /foo(.*?)bar/;
> > and then always write "$dir$separator$file".
> > 
> > But not even this might be good enough. I think that VMS is handling
> > directories in an odd way.
> 
> I have no plans to support VMS (ever).  It's only catfile and catdir
> which is used.  The question is:  is "$dir/$file" good enough for all
> platforms mentioned above?

When looking at what File::Spec does I think it should be. The module
doesn't even check those critical cases (like when accessing a
samba-mounted filesystem or so) and so I don't see what you could gain
by using File::Spec at all (other than the performance penalty).

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval





<Prev in Thread] Current Thread [Next in Thread>