Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^4: Listing of files using glob

by AG87 (Acolyte)
on Jan 05, 2012 at 10:25 UTC ( #946352=note: print w/replies, xml ) Need Help??

in reply to Re^3: Listing of files using glob
in thread Listing of files using glob

I am working on linux and it has no issues in creating a filename with "|" sign in it. I have figured out the problem. In actual the file created in sub createFoldersAndFiles automatically inserts a space before the extension .fasta due to which the complete file name is not being grabbed by glob. Can anyone suggest how to overcome this problem coz its very strange. Normally the FILEOUT handle does not add a space before extension. Any thoughts??? :(

Replies are listed 'Best First'.
Re^5: Listing of files using glob
by choroba (Chancellor) on Jan 05, 2012 at 10:45 UTC
    The handle does not create the filename. Your program does.
    open(FILEOUT, ">$dir/$nameWithoutFastaSign/$nameWithoutFastaSign.fasta +");
    Remove the space from $nameWithoutFastaSign.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946352]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2016-10-28 14:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (384 votes). Check out past polls.