Charlie wrote:
> I'd call that a 0 liner.  Which makes it an installer challenge, not a 
> programming challenge.  What's the point?

It is just a clever hack to transfer files in a pinch.

Best-F
> 
> 
> ---- Original message ----
>> Date: Fri, 20 Mar 2009 14:36:42 -0400
>> From: Federico Lucifredi <[email protected]>  
>> Subject: [Boston.pm] challenge: Python one-liner  
>> To: Boston Perl Mongers <[email protected]>
>>
>> Hello guys,
>> I just ran into this cute trick:
>>
>> python -m SimpleHTTPServer
>>
>> serves the current dir out on port 8000:
>> spaceman:bin lucifred$ python -m SimpleHTTPServer
>> Serving HTTP on 0.0.0.0 port 8000 ...
>> localhost - - [20/Mar/2009 14:32:55] code 404, message File not found
>> localhost - - [20/Mar/2009 14:32:55] "GET /favicon.ico HTTP/1.1" 404 -
>> 164.99.130.79 - - [20/Mar/2009 14:33:01] "GET / HTTP/1.1" 200 -
>> 164.99.130.79 - - [20/Mar/2009 14:33:01] code 404, message File not found
>> 164.99.130.79 - - [20/Mar/2009 14:33:01] "GET /favicon.ico HTTP/1.1" 404 -
>>
>> Suggestions for an equivalent Perl one-liner? Note that the python one
>> is "out of the box" (I did not need to install anything).
>>
>> Best -F
>>
>> -- 
>> _________________________________________
>> -- "'Problem' is a bleak word for challenge" - Richard Fish
>> (Federico L. Lucifredi) - [email protected] - GnuPG 0x4A73884C
>>
>> _______________________________________________
>> Boston-pm mailing list
>> [email protected]
>> http://mail.pm.org/mailman/listinfo/boston-pm
> 
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm


-- 
_________________________________________
-- "'Problem' is a bleak word for challenge" - Richard Fish
(Federico L. Lucifredi) - [email protected] - GnuPG 0x4A73884C

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to