Skip to main content Accessibility help
×
Hostname: page-component-8448b6f56d-m8qmq Total loading time: 0 Render date: 2024-04-25T05:27:02.860Z Has data issue: false hasContentIssue false

Appendix - Solutions to problems

Published online by Cambridge University Press:  05 November 2012

Keith Bradnam
Affiliation:
University of California, Davis
Ian Korf
Affiliation:
University of California, Davis
Get access

Summary

Remember, there’s more than one way to do it!

At the end of some of the Unix and Perl chapters, we have provided one or more problems for you to tackle. For the Perl problems, it is important to realize that nearly all problems can be solved in a myriad of different ways. Some solutions will comprise elements that are clearly ‘variants on a theme,’ whereas others might include ideas that are completely unrelated. This can be great for creative thinkers, but at the same time it can be daunting for people who want to know the right way to do something. Sometimes, two different solutions may be functionally identical and will differ only in the readability of the code and in their use of Perl’s many magical shortcuts.

Be wary of people who claim that a specific Perl script offers the ‘best’ solution to a problem. The ‘best’ solution to any problem can be highly subjective. For example, some people want their code to run as fast as possible; others want it to be as understandable as possible; the two approaches are not always mutually compatible. In this appendix we mostly provide just one solution for each of the problems we have described. We have endeavored to choose solutions that are easy to understand but we encourage you to think of alternative solutions as well.

Type
Chapter
Information
UNIX and Perl to the Rescue!
A Field Guide for the Life Sciences (and Other Data-rich Pursuits)
, pp. 393 - 409
Publisher: Cambridge University Press
Print publication year: 2012

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Solutions to problems
  • Keith Bradnam, University of California, Davis, Ian Korf, University of California, Davis
  • Book: UNIX and Perl to the Rescue!
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511732287.008
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Solutions to problems
  • Keith Bradnam, University of California, Davis, Ian Korf, University of California, Davis
  • Book: UNIX and Perl to the Rescue!
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511732287.008
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Solutions to problems
  • Keith Bradnam, University of California, Davis, Ian Korf, University of California, Davis
  • Book: UNIX and Perl to the Rescue!
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511732287.008
Available formats
×