Perl and CGI for the World Wide Web
Home > Computing and Information Technology > Computer programming / software engineering > Object-oriented programming (OOP) > Perl and CGI for the World Wide Web: Visual QuickStart Guide
Perl and CGI for the World Wide Web: Visual QuickStart Guide

Perl and CGI for the World Wide Web: Visual QuickStart Guide


     0     
5
4
3
2
1



Available


X
About the Book

Perl is by far the most popular programming language for creating scripts that add powerful interactive features to Web pages. Included on most UNIX platforms and available free of charge for Windows and Macintosh, Perl lets you place forms on your Web site that collect and process user input such as product orders and comments, enables visitors to conduct keyword searches, and lets you integrate a database into your site, among many other capabilities. Perl and CGI for the World Wide Web: Visual QuickStart Guide gets you to the heart of Perl scripting with CGI. Even first-time programmers will be able to create interactive Web pages and, more importantly, use their newfound familiarity with Perl to understand and customize the multitude of scripts that already exist on the Web. Following on the huge success of Elizabeth Castro's top-selling HTML 4: Visual QuickStart Guide ---the book on HTML--her Perl and CGI for the World Wide Web: Visual QuickStart Guide is sure to become the choice for learning Perl and CGI.

Table of Contents:
1. Perl Building Blocks. Perl data. Operators and functions. Quotation marks. 2. Creating Perl CGI Scripts. Creating a Perl CGI script. Starting a Perl CGI script. Writing code in Perl. Creating output for a browser. Documenting your script. Uploading your script to the server. Changing permissions. Checking the script's syntax. Running a Perl CGI script. 3. Getting Data from Visitors. Labeling incoming data. Creating a form. Creating text boxes. Creating password boxes. Creating larger text areas. Creating radio buttons. Creating checkboxes. Creating menus. Creating the submit button. Resetting the form. Using an image to submit data. Creating a link to a script. Using a link to input data to a script. Adding default data to a form. 4. Environment Variables. Using environment variables to parse forms. Your visitor's browser and platform. How did your visitor get to your page?. Viewing all the environment variables. 5. Getting Data into the Script. Inputting data from a form or a link. Inputting data from environment variables. Inputting scalar data yourself. Inputting arrays yourself. Inputting hashes yourself. 6. Working with Scalars. Storing the result of an operation. Multiplying, dividing, adding, subtracting. Using more than one operator at a time. Raising a number to an exponential power. Getting the remainder of a division. Connecting strings together. Repeating a string. Operating and assigning in one step. Incrementing (or decrementing) a variable. 7. Working with Arrays. Getting a particular item from an array. Splitting a scalar into an array. Modifying all the members of an array. Finding the length of an array. Getting multiple items from an array. Adding items to the beginning of an array. Adding items to the end of an array. Combining two arrays. Removing the first item in an array. Removing the last item in an array. Replacing an item in an array. Replacing more than one item in an array. Sorting arrays. Reversing the order of an array's contents. 8. Conditional Statements. Comparing numbers. Comparing strings. Evaluating conditions without comparisons. Testing two or more comparisons at a time. Creating a basic conditional statement. Adding options for false conditions. Adding multiple, independent conditions. Using unless. Repeating a block while a condition is true. Repeating a block while a condition is false. Executing the block at least once. Repeating a block a given number of times. Repeating a block for each item in an array. Nesting conditional statements. 9. Subroutines. Creating a simple subroutine. Using a simple subroutine. Creating a subroutine that takes input. Calling a subroutine that takes input. Using a subroutine's return value. Setting the return value manually. Storing subroutines in a separate file. Calling subroutines from an external file. 10. Working with Hashes. Getting a value by using a key. Getting several values using keys. Getting all of a hash's values. Getting all of a hash's keys. Getting each key and value in a hash. Removing key-value pairs. Checking to see if a key exists. 11. Analyzing Data. Finding something. Finding and replacing. Seeing and using what was found. Splitting a value into pieces. Constructing search patterns. Tips for constructing search patterns. Matching a single character. Matching a string of characters. Matching a character from a group. Matching a character that's not in the group. Using class shorthands. Limiting the location. Choosing how many to match. Curbing a quantifier's greediness. Matching one element or another. More on using what you already matched. 12. Remembering What Your Visitors Tell You. About hidden fields. Adding hidden fields to a form. Storing collected data in a hidden field. About cookies. Looking at your browser's cookies. Sending a cookie. Setting a cookie's expiration date. Limiting a cookie to a domain. Limiting a cookie to a part of your server. Limiting cookies to secure connections. Reading and using a cookie. How (and why) your visitors refuse cookies. 13. Printing and HTML. Formatting output with HTML. Printing several lines at a time. Simplifying paths to images and links. Creating header and footer subroutines. Outputting a hash as a table. Outputting an array as a list. Formatting numbers and strings. Formatting numbers as dollars and cents. Padding numbers. 14. Files and Directories. Opening a file. Verifying file and directory operations. Writing to an external file. Getting exclusive access to a file. Reading data from an external file. Closing a file. Renaming a file. Removing a file. Checking a file's status. Accessing a directory. Reading the contents of a directory. Closing a directory. Changing the working directory. Creating a directory. Changing permissions from within a script. Removing a directory. Getting ready to e-mail output. Sending output via e-mail. Eliminating extra returns. 15. Debugging. Checking the easy stuff. Creating an error subroutine. Narrowing it down by commenting it out. Following a variable's progress. 16. Using Other Folks' Scripts. Using other folks' scripts. Getting other people's scripts. Expanding compressed scripts. Configuring borrowed scripts. Customizing borrowed scripts. Appendix A. Parsing Form Input. Creating a subroutine. Determining which method was used. Getting name-value pairs from GET. Getting name-value pairs from POST. Storing name-value pairs in a hash. Using the parsed data. Appendix B. Permissions. Who's the owner? Default permissions. Figuring out the new permissions code. Appendix C. Security. Monitoring visitor input. Watching what is sent to the server. Avoiding tainted data. Appendix D. Unix Essentials. Telnetting to your Unix server. Executing commands in Unix. Dealing with paths in Unix. Changing the working directory. Finding out where you are. Listing directory contents. Eliminating files. Creating and eliminating directories. Decompressing tar and zipped files. Getting help with Unix. Appendix E. Perl and CGI Resources. Text editors.

About the Author :
Elizabeth Castro began working with the Macintosh in a software development and distribution company called CTA, in Barcelona, Spain. Her first project was the translation of an OCR program into English, which was quickly followed by the translation of Aldus PageMaker (version 3!) into Spanish. Castro's department, Publications, was soon translating other programs from Aldus, as well as software from Agfa, Farallon and the Wheels for the Mind magazine for Apple Computer Spain. In 1990, Castro founded Pagina Uno together with Oriol Carbo. One of Pagina Uno's first projects was the translation of The Macintosh Bible, 3rd edition, into Spanish: La Biblia del Macintosh. It was a great success, thanks to the unerring tone of Arthur Naiman combined with the brilliant translation of Jose Rafael Garcia Bermejo (affectionately known as Coti) and Oriol Carbo, among others. Pagina Uno published several more Peachpit books about the Macintosh in Spanish and also began to localize Adobe products like Photoshop, Premiere and Dimensions into Spanish. In 1993, Castro left Pagina Uno (and her beloved Barcelona) and returned to the US to edit the fifth edition of the Mac Bible.


Best Sellers


Product Details
  • ISBN-13: 9780201353587
  • Publisher: Pearson Education Limited
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Spine Width: 13 mm
  • Weight: 425 gr
  • ISBN-10: 020135358X
  • Publisher Date: 02 Dec 1998
  • Binding: Paperback
  • No of Pages: 272
  • Sub Title: Visual QuickStart Guide
  • Width: 228 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Perl and CGI for the World Wide Web: Visual QuickStart Guide
Pearson Education Limited -
Perl and CGI for the World Wide Web: Visual QuickStart Guide
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Perl and CGI for the World Wide Web: Visual QuickStart Guide

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!