On Sun, Jun 10, 2001 at 11:57:27PM -0700, Jeff Bailey wrote:
 
> if (-e $varname) should test for the existance of a file, yes?

yes (-e $varname) will do the test

> perl 5.6.1-3 appears to be returning true when $varname is blank.  I get this 
> theory because in verbose mode:

must return and always returns false when $var is undef (worksforme perl 5.6.1)

>         my $substvars=pkgfile($package,"substvars");
>         if (-e $substvars) {
>                 complex_doit("cat $substvars >> 
> debian/${ext}substvars.debhelper");
>         }

you can rewrite in a more syntethic way by
complex_doit("cat $substvars >> debian/${ext}substvars.debhelper") if (-e 
$substvars);
or 
(-e $substvars) && complex_doit("cat $substvars >> 
debian/${ext}substvars.debhelper");
yves
-- 
Yves Duret
[EMAIL PROTECTED]
On ne d�range pas un ours qui dort


Reply via email to