in reply to Re^2: working with directories
in thread working with directories

What do you mean by "doesnt work"? Is there an error or warning, or does nothing happen, does the computer hang or burn in flames?

Dot has a special meaning in regular expressions. To match a literl dot, use /\./.

Also, you should use -d to test whether something is a directory - directory names with extensions are also valid.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: working with directories
by madM (Beadle) on Sep 14, 2013 at 11:27 UTC
    sorry ir does work! :) i have only one problem .. i get in the hash reference $sequences a key and value that shouldn´t be there.. i guess it comes from the NB_FILE or some hidden file.. here´s what i get:
    $VAR1 = { '' => 'nmentlalignmentlargo.txtIlocblobF(??alignmentpro.txtI +locblob?(?? @? @ @ @ DSDB ` @ @ @',
    thanks again!
      There is probably a file in the directory that is not in the fasta format. Therefore, $header stays empty, and the contents of the file is appended to the empty header as the sequence.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ