|Think about Loose Coupling|
File::Spec patchby pileofrogs (Priest)
|on Aug 08, 2008 at 22:34 UTC||Need Help??|
Blessings upon ye monks!
I've recently run across this error message:
Which wouldn't be a big deal if I were actually using File::Spec in my own code.
Long story short, I found my own bug and I've written a patch for File::Spec::Unix that makes it generate a useful error instead of the one above.
My solution was to use Carp and cluck if conditions would cause the situation above.
So, my request from ye monks is any feedback on my solution and patch before I mail it off the author.
UPDATE: I've changed the patch. The old version clucked if there were no args, the new version clucks if @_ contains an undef. IE something that exists but is not defined, EG catdir('/home',undef,'wibble')