Please don't make substantial changes to your original posts in a way that makes answers you already received not make sense anymore. Instead, add an addendum to your post to clarify.
Now, that said, what exactly is it you want to do now? You've got a list of version numbers and a version you want to match against them, and you want to run a particular script unless that version is on your list. So why not simply do exactly that in Perl?
foreach (@versions) {
unless($_ eq $version) {
runscript(...);
}
}
Or, more idiomatically:
runscript(...) foreach (grep { $_ ne $version } @versions);
|