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

Summary

In this hour, you learned that searching for strings within other strings doesn't have to involve regular expressions; you can perform simple searches by using index and rindex. You also can make simple substitutions by using the tr/// operator. The substr function can be used for both extracting data from strings and editing them. You can create nicely formatted output in Perl by using the printf and sprintf statements. Additionally, you saw arrays used as stacks of items instead of flat lists, and you learned how to manipulate those stacks.


  

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