in reply to why is my pm not finding the correct files

These statements
$vec=${$$assignments{vector_files}}[$num_lib-1]; $spli=${$$assignments{splice_files}}[$num_lib-1];
Look like they could be a problem. If $assignments{vector_files} is a reference to an array it may not be working as you expect. Do $vec and $spli contain the values you expect ?

I usually code like this
my $ref = $assignments{vector_files}; $vec=$$ref[$num_lib-1];

Replies are listed 'Best First'.
Re^2: why is my pm not finding the correct files
by tangledupinperl (Initiate) on Feb 20, 2009 at 17:39 UTC
    I think that the arrays might be something to do with it. by filling the script with prints, it shows that the $vec and $spli are pointing correctly, and is giving arrays ie:
    libraries=ARRAY(0x8e04720) vector_files=/home/sbi6dap/est2uni/data/vector.fasta vector_info=ARRAY(0x8eefff4) splice_files=/home/sbi6dap/est2uni/data/splice.fasta splice_info=ARRAY(0x8e363c0)

    But im not entirely (or slightly) sure where that leaves me. Also, for the record, the vec and splice files are definately in the right format and what the program is expecting.
    Im going to get on the debugging asap, but if i dont go home and have some dinner first im going to starve to death or get locked in the building! neither of which sound fun on a friday night.
    Thanks
    Dan