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

Line 9

foreach my $file ( grep{/\.seq$/ && -f $dir/$_}readdir DIR)

is giving me the error that the argument <filename> isn't numeric in division (/).
Why is it saying this?

Replies are listed 'Best First'.
Re^4: Writing to file...
by toolic (Bishop) on Jul 22, 2009 at 21:37 UTC
    Try adding quotes as follows:
    foreach my $file ( grep{/\.seq$/ && -f "$dir/$_"}readdir DIR)
      Yes, toolic is right, without the quotes, this looks like a division. my goof. Typo's happen.