Jump to ContentJump to Main Navigation
Perl for Exploring DNA$
Users without a subscription are not able to see the full content.

Mark D. LeBlanc and Betsey Dexter Dyer

Print publication date: 2007

Print ISBN-13: 9780195305890

Published to Oxford Scholarship Online: April 2010

DOI: 10.1093/acprof:oso/9780195305890.001.0001

Show Summary Details
Page of

PRINTED FROM OXFORD SCHOLARSHIP ONLINE (www.oxfordscholarship.com). (c) Copyright Oxford University Press, 2019. All Rights Reserved. Under the terms of the licence agreement, an individual user may print out a PDF of a single chapter of a monograph in OSO for personal use (for details see www.oxfordscholarship.com/page/privacy-policy).date: 18 March 2019

Using Perl to Do Calculations

Using Perl to Do Calculations

Chapter:
(p.77) 5 Using Perl to Do Calculations
Source:
Perl for Exploring DNA
Author(s):

Mark D. LeBlanc

Betsey Dexter Dyer

Publisher:
Oxford University Press
DOI:10.1093/acprof:oso/9780195305890.003.05

This chapter elucidates some of the mysteries of calculating with Perl. Arithmetic in Perl is fairly intuitive in its use of symbols. There are all sorts of reasons for doing a little arithmetic on the fly in the midst of a Perl program. In addition to coverage of the arithmetic operators, operator precedence, mathematical library functions, and formatted output, the correctness of equations is stressed throughout the chapter, the motto being ‘...if you are almost correct you are a liability’. Side boxes include: napkin math, Jorge Luis Borges' Library of Babel, a bookshelf of DNA, and creating a programming community.

Keywords:   arithmetic operators, math functions, precedence, formatted output, correctness, napkin math

Oxford Scholarship Online requires a subscription or purchase to access the full text of books within the service. Public users can however freely search the site and view the abstracts and keywords for each book and chapter.

Please, subscribe or login to access full text content.

If you think you should have access to this title, please contact your librarian.

To troubleshoot, please check our FAQs , and if you can't find the answer there, please contact us .