in reply to Trouble getting the file contents from return values

It seems your sub returns the contents of two scalar variables, $out1 and $out2, which you set to be equal to two strings which look like file names. Look at the output of print:
my $out1 = "$maid_dir\\$maid"."contig1.txt"; my $out2 = "$maid_dir\\$maid"."contig2.txt"; print "out1=$out1\n" print "out2=$out2\n"

Update: it is also generally a good idea to check the success of system calls.

Replies are listed 'Best First'.
Re^2: Trouble getting the file contents from return values
by lomSpace (Scribe) on Jun 12, 2009 at 13:47 UTC
    Hello Toolic!

    My system call works. My issue is getting the contents of the file for inserting into my db table field. Currently, all I am inserting is the file name.