in reply to Bioinformatics, Error: explicit package name
is just plain wrong Perl syntax (even with the added semi-colon). Perl's grep has little to do with the Unix shell grep (at least as far as syntax is concerned). The "-v" flag does not exist in Perl for the grep function. Please try:my @third_fragments = grep -v ($rsite3), $second_fragments[$i];
Just a quick example on how to use grep in Perl:perldoc -f grep
$ perl -e 'my @number_larger_than_5 = grep {$_ > 5} 1..10; print " @nu +mber_larger_than_5";' 6 7 8 9 10
|
|---|