Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 scrutinizing the Monastery: (3)
As of 2014-09-21 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls