Hello!
I got a weird print output for the line of code:
print "******processing <<<<${file}>>>\n\n";
One output is
******processing <<<</home/user/projects/database/bwa/index_bwa_human_b36_both.fasta.tar.gz>>>
Another output is actually the following which is weird
>>>***processing <<<</home/user/projects/database/bwa/index_bwa_human_b36_both.fasta.index.tar.gz.md5
The input file where I got the file name has the following line:
[13:06 yunfei@bcl code]$ cat -T -E ../src/db_names | grep "hg18ibwa"
$g18ibwa^Iindex_bwa_human_b36_both.fasta.tar.gz^Iindex_bwa_human_b36_b
+oth.fasta.index.tar.gz.md5
The code for reading file names is (file path is added thereafter by
$file="$dir/$file";)
102 while(<DBNAME>) {
103 next if /^#/;
104 1 while (chomp);
105 s/ +/\t/g;
106 s/\t+/\t/g;
107 my @tmp=split('\t',$_);
108 my $item=shift @tmp;
109 $down_name{$item}=\@tmp;
110 }
Also when I try
130 if ($file =~/(zip$)|(gz$)|(tar$)|(bz$)|(bz
+2$)/i) {
131 $untar{$file}=$untar_dir;
132 print STDERR "Got $file another ta
+r file\n";
133 } elsif ($file =~/md5$/i) {
134 my ($source_file)= $file=~/(.*)\.m
+d5$/i;
135 print STDERR "Source file $source_
+file\n";
136 }
I only got output from line 132 but never from line 135.
Any idea what's wrong here? Thank you very much!
I'm new to this place, hope I'm asking the question at the right place.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.