Comparison: HTTP with Java, Perl or Python

Cameron Laird claird at starbase.neosoft.com
Fri Jun 7 16:14:26 EDT 2002


In article <3D009911.9000904 at gmx.de>,
Ingo Linkweiler  <i.linkweiler at gmx.de> wrote:
>Hello,
>
>for a comparison of languages I need a complete "translation" of this short skript into Perl, Tcl and Java:
>
> myurl = "http://www.uni-dortmund.de"
> import urllib
> file  = urllib.urlopen(myurl)
> text  = file.read()
> file.close()
> print text
			.
			.
			.
How literal should this be?
  $myurl = 'http://www.uni-dortmund.de';
  use LWP::Simple;
  $text = get($myurl);
  print $text, '\n';
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list