in reply to Problems with blank lines

What is $object? It looks like it should be the loop variable in your foreach, but it isn't, here. In that case, you'd be pushing undef values, which might explain the blank lines.

Do you have use strict; at the top of your program?


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Problems with blank lines
by jakeeboy (Sexton) on Nov 30, 2005 at 16:46 UTC
    Sorry the foreach should be: foreach $object (@objects) and the testing should be if (-d $path . $object) I'll update it. Thanks for catching that.