Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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??? :(


Comment on Re^4: Listing of files using glob
Re^5: Listing of files using glob
by choroba (Abbot) 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2014-04-23 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (551 votes), past polls