in reply to Learning BioPerl/OOP and script troubleshooting help

my @split_input_name=split('.out',$source,);
That will probably give the wrong result if the basename of your file contains the string "out" (for example, if your file name is "stout.out"). You should escape the period because the 1st arg to split is a regular expressions, and . has special meaning. Consider using this instead:
my @split_input_name = split(/\.out/, $source);
See also File::Basename

Replies are listed 'Best First'.
Re^2: Learning BioPerl/OOP and script troubleshooting help
by onlyIDleft (Scribe) on Dec 09, 2015 at 08:08 UTC

    Thanks for that suggestion, duly noted. Any ideas about the source of my error and how to fix it?