05652nam 22007093u 450 991045315330332120210106215109.01-119-09509-31-283-64499-10-470-25578-1(CKB)2550000000105816(EBL)977927(OCoLC)806204988(SSID)ssj0000739185(PQKBManifestationID)12368511(PQKBTitleCode)TC0000739185(PQKBWorkID)10673359(PQKB)11218652(MiAaPQ)EBC977927(EXLCZ)99255000000010581620131014d2012|||| u|| |engur|n|---|||||txtccrScripting with Objects[electronic resource] A Comparative Presentation of Object-Oriented Scripting with Perl and PythonHoboken Wiley20121 online resource (1315 p.)Description based upon print version of record.0-470-25579-X 0-470-17923-6 Scripting 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 Variables2.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 Structures2.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() Functions2.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 Basics3.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 Object3.8.2 The Object Returned by a Function CallObject-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 learniObject-oriented programming (Computer science)Perl (Computer program language)Python (Computer program language)Scripting languages (Computer science)Engineering & Applied SciencesHILCCComputer ScienceHILCCElectronic books.Object-oriented programming (Computer science).Perl (Computer program language).Python (Computer program language).Scripting languages (Computer science).Engineering & Applied SciencesComputer Science005.1/17005.117Kak Avinash C12416AU-PeELAU-PeELAU-PeELBOOK9910453153303321Scripting with Objects1973160UNINA