On 4/10/07, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote:

  Can somebody explain the difference between this 2 system calls ?

  system "grep 'fred flint' buff"

This one asks the shell (/bin/sh) to run the command "grep 'fred flint' buff".

  system "grep", "fred flint", "buff"

This one asks grep to run, giving it the two arguments "fred flint"
and "buff"; there's no shell involved.

Does that clear anything up for you?

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to