perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: DOS short/long path names
Date Tue, 01 Jun 2004 07:06:39 GMT
Randy Kobes wrote:
[...]
>>sub t_filepath_cmp ($$;$) {
>>     my @a = (shift, shift);
>>     if (Apache::TestConfig::WIN32) {
>>         $a[0] = Win32::GetLongPathName($a[0]) if defined $a[0];
>>         $a[1] = Win32::GetLongPathName($a[1]) if defined $a[1];
>>     }
>>     t_cmp(@a, @_);
>>}
>>
>>probably the latter reads better.
>>
>>again untested.
> 
> 
> Thanks, Stas. I tried the latter one, but t_cmp()
> interpreted the array @a in a scalar context, and
> also @_. 

Right, the prototype. I haven't thought of that.

> This variation:
[...]
> worked ...

+1


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message