Creative program pizza party

Source: Internet
Author: User
Tags perl script

A command line is used to order pizza online.ProgramAlthough the procedure is simple, it makes sense and is truly creative.

The home page of this program is a http://www.beigerecords.com/cory/pizza_party/ with a source program to download a demo video.

In fact, there is nothing magical about this program. It is simply to use a program to send an HTTP request to the website to simulate the process of logging on to the website on the web and ordering pizza.

I downloaded the source program and looked at it. As expected, a Perl script with less than 1000 lines completed this amazing job. In my opinion, although I cannot order pizza on the website it accesses, this program is quite meaningful.

This short program demonstrates how to use Perl to receive and process an HTTP request and response, therefore, Cookie processing is also included. This program also contains a standard man page, which supports standard * nix-style parameter processing. It can be said that through learning such a small program, we can quickly have a preliminary understanding of using Perl for simple programming, especially web-related programming. Through simple modifications to this applet, you can use it in many different places. It is really good for beginners.

I decided to have time to study this program, so that when I write a blog later, I may be able to publish it to my blog and csdn blog at the same time with one click. However, it is a headache to enter a graphic verification code when logging on to a csdn blog. It seems that it is unlikely to be fully automated ......

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.