deprecated has asked for the wisdom of the Perl Monks concerning the following question:
is returning this error:die "malformed index file!" unless scalar ( grep { $_ =~ m[\d{3}-\d{3}] }, values %batch_ids ) == 6;
where line 21 is the grep. Any ideas what the problem is? My suspicion is that the \d{3} is conflicting with grep's {}. Other than that, the syntax seems to be correctly formed to me...syntax error at readmagazine.pl line 21, near "},"
thanks
brother dep.
--
Laziness, Impatience, Hubris, and Generosity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: m{} within grep{} causing problems?
by japhy (Canon) on Jun 25, 2001 at 19:43 UTC | |
|
Re: m{} within grep{} causing problems?
by mikfire (Deacon) on Jun 25, 2001 at 19:48 UTC | |
|
Re: m{} within grep{} causing problems?
by btrott (Parson) on Jun 25, 2001 at 19:44 UTC |