Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. The Basics of Perl > Item 2. Enable new Perl features when you need ...

Item 2. Enable new Perl features when you need them

Starting with Perl 5.10, you must explicitly enable new features. This ensures that the latest release of Perl can be backward compatible while at the same time letting people start new work using all of the latest nifty features.

For instance, Perl 5.10 adds a say built-in that is just like print except that it adds the trailing newline for you. Not only is your string a couple of characters shorter, but you don’t have to double-quote the string just for the newline:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial