system("echo",...) is roughly equivalent to print.
I guess the reason why our anonymous brother didn't use the latter is that you have the "real" commands for debugging, and to change from "dry run" to "wet run" (or how this may be called) afterwards you do (in vi command mode)