Slices & Articles Get by the slice or add to your own ebook
|James Tisdall||O'Reilly Media||ePub|
Perl modules are essential to any Perl programmer. They are a great way to organize code into logical collections of interacting parts. They collect useful Perl subroutines and provide them to other programs (and programmers) in an organized and convenient fashion.
This chapter begins with a discussion of the reasons for organizing Perl code into modules. Modules are comparable to subroutines: both organize Perl code in convenient, reusable chunks.
Later in this chapter, Ill introduce a small
Ill also demonstrate how to find, install, and use modules taken from the all-important CPAN collection. A familiarity with searching and using CPAN is an essential skill for Perl programmers; it will help you avoid lots of unnecessary work. With CPAN, you can easily find and use code written by excellent programmers and road-tested by the Perl community. Using proven code and writing less of your own, youll save time, money, and headaches.See All Chapters
|foy, brian d||O'Reilly Media||ePub|
Answer 15.1: This answer is going to look a lot like your answers for many of the other exercises in this chapter. Most of the code isnt about the smart match operator because that operator hides so much of the work that youre actually doing, which is what makes it so attractive for some problems.
Since the smart match operator is a Perl 5.10 feature, you have to
enable that feature. One way to do that is
The smart match part of this problem is easy. Once you have the name
that you want to match in a scalar variable, you smart match that to the
array you want to search:
You can reuse this for the other exercises in this chapter. Theres
one tricky part. When you take the name from
15.2: This answer is structurally similar to your program in Answer 15.1. Once you get
the names in
|Matthew MacDonald||O'Reilly Media||ePub|
In Chapter1, you took your first look at the datasheeta straightforward way to browse and edit the contents of a table. As youve learned since then, the datasheet isnt the best place to build a table. (Design view is a better choice for database control freaks.) However, the datasheet is a great tool for reviewing the records in your table, making edits, and inserting new data.
Based on your experience creating the Dolls table (Creating a Simple Table), you probably feel pretty confident breezing around the datasheet. However, most tables are considerably larger than the examples youve seen so far. After all, if you need to keep track of only a dozen bobbleheads, then you really dont need a databaseyoull be just as happy jotting the list down in any old spreadsheet, word processor document, or scrap of unused Kleenex.
On the other hand, if you plan to build a small bobblehead empire (suitable for touring in international exhibitions), you need to fill your table with hundreds or thousands of records. In this situation, its not as easy to scroll through the mass of data to find what you need. All of a sudden, the datasheet seems more than a little overwhelming.See All Chapters
|Simon Foster||Hunter Publishing||ePub|
The currency of China is the yuan ($), also known as the kwai or renminbi (RMB), which literally translates as "people's money. At the time of writing there were $8to the US dollar, $10 to the Euro and $16 to the British Pound Sterling. Paper money was introduced to the world by China in 806 AD and today bank notes come in various amounts, many of which show a portrait of the omnipresent Chairman Mao on the front and famous landscapes from around the country on the back. Denominations are $100 (red), $50 (green), $20 (brown), $10 (blue), $5 (purple or brown), $2 (green) and $1 (green or brown), along with the almost worthless 5, 2 and 1 mao notes (10 mao, also referred to as jiao = $1). The $2 and 2 mao notes are both green and look very similar remember the lower value one is the smaller of the two. Counterfeiting is rife in China and even the smallest local store may have a UV scanner. While $10 notes are often copied, the one to watch out for is the $100 (see Warning Scams). The quality of fakes is often high, but generally you can tell by the feel of the money, which is often a little too crunchy to the touch. In Hong Kong the currency is the Hong Kong dollar (HK$) and at the time of writing there were HK$8 to the US$, HK$10 to the Euro and HK$15 to the British Pound Sterling. In Macau the pataca, or Macau dollar (MOP$) is roughly equivalent to the HK$, which can be used throughout the territory.See All Chapters
|Robert Earl Hardy||University of North Texas Press|
A Deeper Blue: The Life and Music of Townes Van Zandt
TOWNES VAN Zandt tribute show was held a few weeks after his death, at the Cactus Café in
Austin on two nights when Townes had been booked to play his “home club.” Friends and fans gathered to hear Jimmie
Dale Gilmore, Joe Ely, Kimmie Rhodes, J.T. Van Zandt (who attended a number of tribute shows and has become an accomplished performer) and others play Townes’ music and remember his life. More all-star tributes followed quickly, including a notable show at the Bottom Line in New York and gatherings in
Nashville, Houston, Seattle, and Los Angeles. Guy and Susanna
Clark hosted a “Celebration of Townes Van Zandt” on Austin
City Limits with Willie Nelson, Emmylou Harris, Lyle Lovett,
Steve Earle, Nanci Griffith, Jack Clement, and others (including J.T.), which became one of the series’ most popular shows.
The Clarks were also prominently involved in an album project that was released in 2001 on Willie Nelson’s Pedernales Records called Poet: A Tribute to Townes Van Zandt, which featured Guy,See All Chapters
Business & Economics