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 ( [id://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 (Cardinal) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://946352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found