Perl
  Home arrow Perl arrow Page 3 - Perl Text: Quoting Without Quote Marks
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PERL

Perl Text: Quoting Without Quote Marks
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-03-03

    Table of Contents:
  • Perl Text: Quoting Without Quote Marks
  • Working with the Here Document...Over There
  • Formatting with the Here Document
  • You Can Look But Don't Touch

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Perl Text: Quoting Without Quote Marks - Formatting with the Here Document


    (Page 3 of 4 )

    Another benefit to the here document is the ability to format your text and have it appear exactly as you typed it in. Here is a poem that we will display using the here document:


    #!/usr/bin/perl

    $twain= <<'Poem';

    Warm summer sun,

      Shine kindly here,

    Warm southern wind,

      Blow softly here.

    Green sod above,

      Lie light, lie light.

    Good night, dear heart,

      Good night, good night.

    Poem

    print $twain;

    This will display Twain's poem like so:

    Warm summer sun,

      Shine kindly here.

    Warm southern wind,

      Blow softly here.

    Green sod above,

      Lie light, lie light.

    Good night, dear heart,

      Good night, good night.

    More Perl Articles
    More By James Payne


       · Thanks for dropping by to read my article on Perl text formatting. Here we show you...
     

       

    PERL ARTICLES

    - Perl: More on Lists and Hashes
    - Perl: Dimensional Lists
    - Perl: A Continuing Look at Hashes and Multid...
    - Perl: Another Round with Hashes
    - Perl Hashes
    - Perl Lists: A Final Look at List::Util
    - Perl Lists: Utilizing List::Util
    - Perl Lists: The Split() Function
    - SQL and CGI with Perl and DBI
    - Perl Lists: More Functions and Operators
    - SELECT Queries and Perl
    - Perl Lists: More on Manipulation
    - Creating a Database with Perl and DBI
    - Perl: Sailing the List(less) Seas
    - Perl and DBI





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway