LEADER 05652nam 22007093u 450 001 9910453153303321 005 20210106215109.0 010 $a1-119-09509-3 010 $a1-283-64499-1 010 $a0-470-25578-1 035 $a(CKB)2550000000105816 035 $a(EBL)977927 035 $a(OCoLC)806204988 035 $a(SSID)ssj0000739185 035 $a(PQKBManifestationID)12368511 035 $a(PQKBTitleCode)TC0000739185 035 $a(PQKBWorkID)10673359 035 $a(PQKB)11218652 035 $a(MiAaPQ)EBC977927 035 $a(EXLCZ)992550000000105816 100 $a20131014d2012|||| u|| | 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aScripting with Objects$b[electronic resource] $eA Comparative Presentation of Object-Oriented Scripting with Perl and Python 210 $aHoboken $cWiley$d2012 215 $a1 online resource (1315 p.) 300 $aDescription based upon print version of record. 311 $a0-470-25579-X 311 $a0-470-17923-6 327 $aScripting with Objects: A Comparative Presentation of Object-Oriented Scripting With Perl and Python; Contents; Preface; Acknowledgments; 1 Multilanguage View of Application Development and OO Scripting; 1.1 Scripting Languages Versus Systems Programming Languages; 1.2 Organization of this Book; 1.3 Credits and Suggestions for Further Reading; 2 Perl - A Review of the Basics; 2.1 Scalar Values in Perl; 2.1.1 Numbers; 2.1.2 Strings; 2.2 Perl's Variables: Scalars, Arrays, and Hashes; 2.2.1 Scalar; 2.2.2 Array; 2.2.3 Hash; 2.3 Lexical Scope, Lexical Variables, and Global Variables 327 $a2.3.1 Lexical Variables2.3.2 Package Variables; 2.4 Displaying Arrays; 2.5 Displaying Hashes; 2.6 Terminal and File I/O; 2.6.1 Terminal I/O; 2.6.2 File I/O; 2.6.2.1 I/O for Text Files; 2.6.2.2 I/O for Binary Files; 2.7 Functions, Subroutines, and Functions Used as Operators; 2.7.1 Using a Function as an Operator; 2.7.2 User-Defined Functions; 2.7.3 Passing Arguments to Functions; 2.7.4 Functions Can be Called with Keyword Arguments; 2.7.5 Default Values for Function Arguments; 2.8 What Is Returned by Evaluation Depends on Context; 2.9 Conditional Evaluation and Loop Control Structures 327 $a2.9.1 Controlling an Outer Loop from an Inner Loop2.9.2 When Is a Conditional True or False?; 2.9.3 Complex Conditionals; 2.10 Functions Supplied with Here-Doc Arguments; 2.11 Modules and Packages in Perl; 2.11.1 Creating Your Own Module; 2.11.2 Importing Names from a Module; 2.11.3 ""Nesting"" of Modules; 2.11.4 The Autoloading Feature; 2.11.5 Package Constructors and Destructors; 2.12 Temporarily Localizing a Global Variable; 2.13 Typeglobs for Global Names; 2.13.1 Creating Global Variables by Direct Assignments to Typeglob Slots; 2.14 The eval Operator; 2.15 grep() and map() Functions 327 $a2.16 Interacting with the Directory Structure2.16.1 Directory Handles; 2.16.2 File Tests; 2.16.3 Taking Advantage of Shell's Globbing; 2.16.4 Scanning a Directory Tree; 2.17 Launching Processes; 2.17.1 Launching a Child Process with system(); 2.17.2 Launching a Child Process with Backticks; 2.17.3 exec( ) for Transferring Control to a Process; 2.17.4 Launching a Child Process with fork(); 2.17.5 open( ) for Interprocess Communications; 2.18 Sending and Trapping Signals; 2.19 Credits and Suggestions for Further Reading; 2.20 Homework; 3 Python - A Review of the Basics 327 $a3.1 Language Model: Perl versus Python3.2 Numbers; 3.3 Python Containers: Sequences; 3.3.1 Strings; 3.3.2 Tuples; 3.3.3 Lists; 3.3.4 Xrange Sequences; 3.4 Python Containers: Dictionaries; 3.5 Built-in Types as Classes; 3.5.1 String Type as a Class; 3.5.2 Numeric Types as Classes; 3.6 Subclassing the Built-in Types; 3.6.1 Subclassing the String Type; 3.6.2 Subclassing the Integer Type; 3.7 Terminal and File I/O; 3.7.1 Terminal I/O; 3.7.2 File I/O; 3.7.2.1 I/O for Text Files; 3.7.2.2 I/O for Binary Files; 3.8 User-defined Functions; 3.8.1 A Function Is an Object 327 $a3.8.2 The Object Returned by a Function Call 330 $aObject-Oriented scripting with Perl and Python Scripting languages are becoming increasingly important for software development. These higher-level languages, with their built-in easy-to-use data structures are convenient for programmers to use as ""glue"" languages for assembling multi-language applications and for quick prototyping of software architectures. Scripting languages are also used extensively in Web-based applications. Based on the same overall philosophy that made Programming with Objects such a wide success, Scripting with Objects takes a novel dual-language approach to learni 606 $aObject-oriented programming (Computer science) 606 $aPerl (Computer program language) 606 $aPython (Computer program language) 606 $aScripting languages (Computer science) 606 $aEngineering & Applied Sciences$2HILCC 606 $aComputer Science$2HILCC 608 $aElectronic books. 615 4$aObject-oriented programming (Computer science). 615 4$aPerl (Computer program language). 615 4$aPython (Computer program language). 615 4$aScripting languages (Computer science). 615 7$aEngineering & Applied Sciences 615 7$aComputer Science 676 $a005.1/17 676 $a005.117 700 $aKak$b Avinash C$012416 801 0$bAU-PeEL 801 1$bAU-PeEL 801 2$bAU-PeEL 906 $aBOOK 912 $a9910453153303321 996 $aScripting with Objects$91973160 997 $aUNINA