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:
See also File::Basenamemy @split_input_name = split(/\.out/, $source);
|
|---|
| 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 |