in reply to I can't find my mistake here!!!

Tangential: PerlCritic balks at 2 arg opens. My understanding if the current best practice is open(my $file, '>', "$infile.OUTFILE");

Replies are listed 'Best First'.
Re^2: I can't find my mistake here!!!
by Anonymous Monk on Jul 02, 2014 at 12:00 UTC
    Hi guys!
    Many thanks for all the posts!
    My problem is actually down to why this:
    print ">$protein\n$respective_seq\n";

    works, and I see the results on my screen (so the if block is executed normally, while this:
    print OUT ">$protein\n$respective_seq\n";

    does not work! The file IS created, but nothing is printed inside...I tried also with open OUT, '>', "outfile"; but no luck!
    I don't get a warning either...
    I am so confused, I can't make sense of it...