[Ilugc] .a-tip-a-day (patch - apply diffs and act as inverse of diff)

  • From: lawgon@xxxxxxxxxxxxxxx (Kenneth Gonsalves)
  • Date: Wed Sep 30 14:34:21 2009

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).

oh like this code:

#!/usr/bin/env python

print 'Hello world'

(where is the gunk?)


-- 
regards
kg
http://lawgon.livejournal.com

Other related posts: