fix syntax error, add basic tests

This commit is contained in:
Graham Knop 2010-02-22 10:21:07 -06:00
parent 45b84ec93f
commit 7067afe8a9
2 changed files with 16 additions and 1 deletions

View file

@ -76,7 +76,7 @@ sub preloadPaths {
my @paths;
try {
@paths = grep {
-d ? 1 : do {
(-d) ? 1 : do {
warn "WARNING: Not adding lib directory '$path' from @{[PRELOAD_CUSTOM]}: Directory does not exist.\n";
0;
}