in reply to Problems with grep
your problem is you're misusing split, exampleD:\>perl -e"die grep /6/, 3 .. 6,6,6" 666 at -e line 1.
you may have intendedD:\>perl -e"die split 1, 121314" 234 at -e line 1. D:\>perl -e"die split 1, 121314, 1" 121314 at -e line 1. D:\>perl -e"die split 1, 121314, 2" 21314 at -e line 1. D:\>perl -e"die split 1, 121314, 3" 2314 at -e line 1. D:\>perl -e"die split 1, 121314, 4"
my @matched_cve = map { split(',', $_) } @matched;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with grep
by citromatik (Curate) on Jan 30, 2009 at 14:36 UTC | |
by Anonymous Monk on Jan 30, 2009 at 14:58 UTC | |
by citromatik (Curate) on Jan 30, 2009 at 15:11 UTC | |
by ikegami (Patriarch) on Jan 30, 2009 at 15:31 UTC | |
|
Re^2: Problems with grep
by spstansbury (Monk) on Jan 30, 2009 at 14:59 UTC | |
by locked_user sundialsvc4 (Abbot) on Jan 30, 2009 at 16:44 UTC |