
Lýsing:
Everything beginners need to start programming with Perl Perl is the ever-popular, flexible, open source programming language that has been called the programmers Swiss army knife. This book introduces Perl to both new programmers and experienced ones who are looking to learn a new language. In the tradition of the popular Wrox Beginning guides, it presents the newest features, real-world examples, and everything necessary for a novice to start programming with confidence.
Perl is a flexible, open source programming language that sports great new features in the current release Introduces Perl to both new programmers and experienced ones who want to learn a new language Features an introduction to programming and provides real-world applications for today's workplace Covers text and data types; working with numbers; operators and functions; variables, lists, and hashes; loops and subroutines; managing input and output; object-oriented programming; testing and debugging; Perl on the Web; and more Beginning Perl gives new programmers the information and instruction they need to confidently start programming with Perl.
Annað
- Höfundur: Curtis Poe
- Útgáfa:1
- Útgáfudagur: 2012-08-29
- Hægt að prenta út 10 bls.
- Hægt að afrita 2 bls.
- Format:Page Fidelity
- ISBN 13: 9781118221877
- Print ISBN: 9781118013847
- ISBN 10: 1118221877
Efnisyfirlit
- Beginning Perl
- Copyright
- Credits
- About the Author
- About the Technical Editor
- Acknowledgments
- Contents
- Introduction
- Who this Book is for
- If You Have No Programming Experience
- If You're An Experienced Programmer
- What this Book Covers
- How this Book is Structured
- What You Need to Use this Book
- Conventions
- Source Code
- Errata
- P2P.Wrox.Com
- Who this Book is for
- Chapter 1: What is Perl?
- Perl Today
- Getting Perl
- Working with Non-Windows Platforms: perlbrew
- Using Windows
- The Perl Community
- IRC
- PerlMonks
- Perl Mongers
- StackOverflow
- Using perldoc
- Understanding the Structure of perldoc
- Getting Started with perldoc
- Using Tutorials and FAQs
- Using the perldoc - f function
- Using a Terminal Window
- Using the Command Line
- Creating a Work Directory
- Creating Hello, World!
- Writing Your First Program
- Shebang Lines
- Summary
- Chapter 2: Understanding the CPAN
- CPAN and METACPAN
- Finding and Evaluating Modules
- Downloading and Installing
- CPAN Clients
- Using the CPAN.pm Client
- Using the Cpanm Client
- PPM
- CPAN::Mini
- Summary
- CPAN and METACPAN
- Chapter 3: Variables
- What Is Programming?
- A Few Things to Note Before Getting Started
- strict, warnings, and diagnostics
- The my Function
- Sigils
- Identifiers
- Scalars
- Strings
- Numbers
- Arrays
- Breaking Down the Code
- Accessing Elements
- Iterating over Arrays
- Hashes
- Accessing Elements
- Iterating Over Hashes
- Adding Data to Hashes
- Slices
- Array Slices
- Hash Slices
- Context
- Scalar Context
- List Context
- Scope
- my Variables
- Package Variables
- Strict, Warnings, and Diagnostics
- strict
- warnings
- diagnostics
- Working Without a Net
- Perl's Built-in Variables
- $_
- %ENV
- @ARGV
- Other Special Variables
- Summary
- Chapter 4: Working with Data
- Using Scalars
- Working with Strings
- Using String Operators
- Scalar::Util
- Numeric Builtins
- Bitwise Operators
- Understanding Booleans
- Assignment Operators
- Precedence and Associativity
- Array and List Functions
- Built-in Array Functions
- List::Util
- Built-in Hash Functions
- delete()
- exists()
- keys()
- values()
- each()
- Scoping Keywords
- my()
- local()
- our()
- state()
- Summary
- Using Scalars
- Chapter 5: Control Flow
- Using the if Statement
- Understanding Basic Conditionals
- else/elsif/unless
- The Ternary Operator ?:
- for/foreach loops
- Arrays
- Lists
- C-Style
- Using while/until Loops
- Lists
- last/next/redo/continue
- Labels
- Statement Modifiers
- Types of Statement Modifiers
- do while/do until
- given/when
- Basic Syntax
- The Switch Module
- Summary
- Using the if Statement
- Chapter 6: References
- References 101
- Array References
- Hash References
- Anonymous References
- Other References
- Working with References
- Debugging
- Copying
- Slices
- Summary
- References 101
- Chapter 7: Subroutines
- Subroutine Syntax
- Argument Handling
- Multiple Arguments
- Named Arguments
- Aliasing
- State Variables (Pre-and Post-5.10)
- Passing a List, Hash, or Hashref?
- Returning Data
- Returning True/False
- Returning Single and Multiple Values
- wantarray
- FAIL!
- "Wake Up! Time to Die!"
- carp and croak
- eval
- evalGotchas
- Try::Tiny
- Subroutine References
- Existing Subroutines
- Anonymous Subroutines
- Closures
- Prototypes
- Argument Coercion
- More Prototype Tricks
- Mimicking Builtins
- Forward Declarations
- Prototype Summary
- Recursion
- Basic Recursion
- Divide and Conquer
- Memoization
- Things to Watch For
- Argument Aliasing
- Scope Issues
- Doing Too Much
- Too Many Arguments
- Summary
- Subroutine Syntax
- Chapter 8: Regular Expressions
- Basic Matching
- Quantifiers
- Escape Sequences
- Extracting Data
- Modifiers and Anchors
- Character Classes
- Grouping
- Advanced Matching
- Substitutions
- Lookahead/Lookbehind Anchors
- Named Subexpressions (5.10)
- Common Regular Expression Issues
- Regexp::Common
- E-mail Addresses
- HTML
- Composing Regular Expressions
- Summary
- Basic Matching
- Chapter 9: Files and Directories
- Basic File Handling
- Opening and Reading a File
- File Test Operators
- The Diamond Operator
- Temporary Files
- DATA as a File
- binmode
- Directories
- Reading Directories
- Globbing
- Unicode
- What Is Unicode?
- Two Simple Rules
- Lots of Complicated Rules
- Useful Modules
- File::Find
- File::Path
- File::Find::Rule
- Summary
- Basic File Handling
- Chapter 10: Sort, Map, and Grep
- Basic Sorting
- Sorting Alphabetically
- Sorting Numerically
- Reverse Sorting
- Complex Sort Conditions
- Writing a sort Subroutine
- Sorting and Unicode Fun!
- map and grep
- Using grep
- Using map
- Aliasing Issues
- Trying to Do Too Much
- Trying to Be Clever
- Putting It All Together
- Schwartzian Transform (aka decorate, sort, undecorate)
- Guttman-Rosler Transform
- Summary
- Basic Sorting
- Chapter 11: Packages and Modules
- Namespaces and Packages
- use Versus require
- Package Variables
- Version Numbers
- Subroutines in Other Packages
- Exporting
- Naming Conventions
- BEGIN, UNITCHECK, CHECK, INIT, and END
- BEGIN blocks
- END Blocks
- INIT, CHECK, and UNITCHECK Blocks
- Plain Old Documentation (POD)
- Documentation Structure
- Headings
- Paragraphs
- Lists
- Verbatim
- Miscellaneous
- Creating and Installing Modules
- Creating a Simple Module
- Makefile.PL or Module::Build?
- Summary
- Namespaces and Packages
- Chapter 12: Object Oriented Perl
- What Are Objects? The Ævar the Personal Shopper
- Three Rules of Perl OO
- Class Is a Package
- An Object Is a Reference That Knows Its Class
- A Method Is a Subroutine
- Objects – Another View
- Using TV::Episode
- Subclassing
- Using TV::Episode::Broadcast
- Class Versus Instance Data
- A Brief Recap
- Overloading Objects
- Using UNIVERSAL
- Understanding Private Methods
- Gotchas
- Unnecessary Methods
- "Reaching Inside"
- Multiple Inheritance
- Summary
- Chapter 13: Moose
- Understanding Basic Moose Syntax
- Using Attributes
- Using Constructors
- Understanding Inheritance
- Taking Care of Your Moose
- Advanced Moose Syntax
- Using Type Constraints
- Using Method Modifiers
- Understanding and Using Roles
- Exploring MooseX
- Rewriting Television::Episode
- Moose Best Practices
- Use namespace::autoclean and Make Your Class Immutable
- Never Override new()
- Always Call Your Parent BUILDARGS Method
- Provide Defaults if an Attribute is Not Required
- Default to Read-Only
- Put Your Custom Types in One Module and Give Them a Namespace
- Don't Use Multiple Inheritance
- Always Consume All Your Roles at Once
- Summary
- Understanding Basic Moose Syntax
- Chapter 14: Testing
- Basic Tests
- Using Test::More
- Writing Your Tests
- Understanding the prove Utility
- Understanding Test::More Test Functions
- Using ok
- Using is
- Using like
- Using is_deeply
- Using SKIP
- Using TODO
- Using eval {}
- Using use_ok and require_ok
- Working with Miscellaneous Test Functions
- Using Other Testing Modules
- Using Test::Differences
- Using Test::Exception
- Using Test::Warn
- Using Test::Most
- Understanding xUnit Style Using Testing
- Using Test::Class
- A Basic Test Class
- Extending a Test Class
- Using Test Control Methods
- Calling Parent Test Control Methods
- Summary
- Basic Tests
- Chapter 15: The Interwebs
- A Brief Introduction to HTTP
- Plack
- Hello, World!
- Handling Parameters
- Templates
- Handling POST Requests
- Sessions
- Web Clients
- Extracting Links from Web Pages
- Extracting Comments from Web Pages
- Filling Out Forms Programmatically
- Summary
- A Brief Introduction to HTTP
- Chapter 16: Databases
- Using the DBI
- Connecting to a Database
- Using SQLite
- Using DBD::SQLite
- Selecting Basic Data
- Using SELECT Statements
- Using Bind Parameters
- Inserting and Updating Data
- Creating Transactions
- Handling Errors
- Summary
- Using the DBI
- Chapter 17: Plays Well with Others
- The Command Line
- Reading User Input
- Handling Command-Line Arguments
- perlrun
- Other Programs
- Running an External Program
- Reading Another Program's Output
- Writing to Another Program's Input
- STDERR
- Summary
- The Command Line
- Chapter 18: Common Tasks
- Using CSV Data
- Reading CSV Data
- Writing CSV Data
- Understanding Basic XML
- Reading CSV Data
- Writing CSV Data
- Handling Dates
- Using the DateTime Module
- Using Date::Tiny and DateTime::Tiny
- Understanding Your Program
- Using the Debugger
- Profiling
- Perl::Critic
- Summary
- Using CSV Data
- Chapter 19: The Next Steps
- What Next?
- What This Book Covers
- What This Book Leaves Out
- Understanding Object-Relational Mappers
- Understanding DBIx::Class
- Understanding Basic DBIx::Class Usage
- Understanding the Pros and Cons of an ORM
- Using DBIx::Class::Schema::Loader
- Using the Template Toolkit
- Why Use Templates?
- An Introduction to Template Toolkit
- Using Catalyst to Build Apps
- The Beauty of MVC
- Setting Up a Catalyst Application
- Using Catalyst Views
- Using Catalyst Models
- Using Catalyst Controllers
- CRUD: Create, Read, Update, and Delete
- Summary
- What Next?
- Appendix: Answers to Exercises
- Chapter 3: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 4: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Chapter 5: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Exercise 5: Solution
- Exercise 6: Solution
- Chapter 6: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 7: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Chapter 8: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 9: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Exercise 5: Solution
- Chapter 10: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Chapter 11: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Exercise 5: Solution (Option)
- Chapter 12: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 13: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Chapter 14: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Chapter 15: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Chapter 16: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Chapter 17: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 18: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Exercise 4: Solution
- Exercise 5: Solution
- Chapter 19: Answers to Exercises
- Exercise 1: Solution
- Exercise 2: Solution
- Exercise 3: Solution
- Chapter 3: Answers to Exercises
UM RAFBÆKUR Á HEIMKAUP.IS
Bókahillan þín er þitt svæði og þar eru bækurnar þínar geymdar. Þú kemst í bókahilluna þína hvar og hvenær sem er í tölvu eða snjalltæki. Einfalt og þægilegt!Rafbók til eignar
Rafbók til eignar þarf að hlaða niður á þau tæki sem þú vilt nota innan eins árs frá því bókin er keypt.
Þú kemst í bækurnar hvar sem er
Þú getur nálgast allar raf(skóla)bækurnar þínar á einu augabragði, hvar og hvenær sem er í bókahillunni þinni. Engin taska, enginn kyndill og ekkert vesen (hvað þá yfirvigt).
Auðvelt að fletta og leita
Þú getur flakkað milli síðna og kafla eins og þér hentar best og farið beint í ákveðna kafla úr efnisyfirlitinu. Í leitinni finnur þú orð, kafla eða síður í einum smelli.
Glósur og yfirstrikanir
Þú getur auðkennt textabrot með mismunandi litum og skrifað glósur að vild í rafbókina. Þú getur jafnvel séð glósur og yfirstrikanir hjá bekkjarsystkinum og kennara ef þeir leyfa það. Allt á einum stað.
Hvað viltu sjá? / Þú ræður hvernig síðan lítur út
Þú lagar síðuna að þínum þörfum. Stækkaðu eða minnkaðu myndir og texta með multi-level zoom til að sjá síðuna eins og þér hentar best í þínu námi.
Fleiri góðir kostir
- Þú getur prentað síður úr bókinni (innan þeirra marka sem útgefandinn setur)
- Möguleiki á tengingu við annað stafrænt og gagnvirkt efni, svo sem myndbönd eða spurningar úr efninu
- Auðvelt að afrita og líma efni/texta fyrir t.d. heimaverkefni eða ritgerðir
- Styður tækni sem hjálpar nemendum með sjón- eða heyrnarskerðingu
- Gerð : 208
- Höfundur : 12391
- Útgáfuár : 2012
- Leyfi : 379