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:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]