Cy Kurtz wrote: > > I'm trying to write a little program to take all of the fun out of the > daily jumble. > > My plan is to get a sequence of letters from the user, move the letters > around and bounce the resulting sequence of letters off of a spell check > dictionary until the program generates an English word. > > When I call grep from the command line, grep returns what I expect. When > I call grep from perl, I get: > > not enough arguments for grep > > or > > search pattern not terminated
Perl isn't a scripting language, and the Perl 'grep' function isn't shelling out to run the grep program. 'grep' takes either an expression or a Perl block as its first parameter. It returns those elements of the following list for which the expression/block are 'true'. We can't tell what's wrong without seeing your daily jumble :) Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>