in reply to Re^3: Writing to file...
in thread Writing to file...

Try adding quotes as follows:
foreach my $file ( grep{/\.seq$/ && -f "$dir/$_"}readdir DIR)

Replies are listed 'Best First'.
Re^5: Writing to file...
by Marshall (Canon) on Jul 24, 2009 at 20:31 UTC
    Yes, toolic is right, without the quotes, this looks like a division. my goof. Typo's happen.