my $cmd = qq{ egrep -f "$_proj_file" "$_running_file" > "$_admin_temp_file" }; my $result = `$cmd`; # or even qx{$cmd}