$name, 'Machine' => $Name, 'MACHINE' => $NAME) as $from => $to) { exec("perl -p -i -n -e 's/$from/$to/g' cmd_$name.$ext"); } } if (!isset($argv[2])) { $include = "#include "; exec("perl -p -i -n -e 's!$include\n!!sg' all.h"); exec("perl -p -i -n -e 's!^(//tag: new_cmd\.php.*)$!$include\n$1!' all.h"); }