Next:
A Perl Program
Up:
Physics 2101 - Scientific
Previous:
Physics 2101 - Scientific
Index
Contents
A Perl Program
Programming Elements
Variables
Scalar Variables
Arrays
Hashes
Random values
Declaring variables
Loops
Simple for () {}
General for ( ) { }
while () {}
Conditionals
Comparisons
if() { } and unless(){ }
if/else and ternary operators
if/elsif/else and switch statemements
Multiple conditions
Defined and existence
Input/Output
Standard Input/Output/Error
Command line arguments
File Handles
References and Complex Data Structures
References
Complex data structures
Subroutines, functions, and modules
Defining subroutines
Passing in variables
Returning variables
Passing in and returning arrays and hashes
References to subroutines
Modules
CGI scripts
HTTP protocol
HTML
Form processing
Objects Oriented Programming
A simple example
Further examples
Inheritance
A C Program
Programming Elements
Variables
Scalar Variables
Arrays
Loops
Simple for () {}
while () {}
Conditionals
if() { }
if/else and ternary operators
Input/Output
Standard Input/Output/Error
Command line arguments
File Handles
Subroutines, functions, and libraries
Defining subroutines
Header files
Libraries
Makefiles
Pointers
What is a pointer?
Pointers and subroutines
Arrays
Allocation
Subroutine return types
Function pointers
Void pointers
Structures
Defining structures
Pointers to structures
Structures and subroutines
C++
A C++ program
Classes
Constructors
Inheritance
Java
A simple program
Classes
Constructors
Inheritance
Index