Nathan Wiger wrote:
> In fact, I'd much rather still a more generic function like 'want' that
> takes a list of things to check:
> 
>    file($file, 'd');      # is it a directory?
>    file($file, 'wd');     # is it a writable directory?

  if ( all { $_->($file) } \&writable, \&directory ) { ...

:-)

-- 
John Porter

Reply via email to