On Wednesday 30 Sep 2009 2:23:16 pm Manvendra Bhangui wrote:
On Wednesday 30 Sep 2009 2:12:18 pm Manvendra Bhangui wrote:
You can take the following 'C' program as an example. Write the same in
perl and enjoy the gunk that comes out.
int
main(int argc, char **argv, char **envp)
{
__write(1, "hello world\n", 12);
}
what does this program do?
Just print the line "hello world" to file descriptor 1
(which happens to be your terminal in case you execute in a shell).