grep doesn't eval strings of Perl code.
Oops, you are right! My mistake!
as the original code (which does work)Thanks for pointing that out. Interesting. I was not aware of that usage of grep (always used it with a block).
In reply to Re^3: grep usage confusion (eval)
by rovf
in thread grep usage confusion
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |