Introduction
Get an introduction to scripting languages and the subject.
Scripting languages are high-level languages used to automate tasks, process text and build web and GUI applications. This tutorial covers Ruby, Perl, TCL and Tk, from the basics to advanced topics such as web programming, extensions and security.
Get an introduction to scripting languages and the subject.
Learn what Ruby is, its features and where it is used.
Learn how to download and install Ruby on Windows, Linux and macOS.
Learn how a Ruby program is structured and how it is run.
Learn how to write single-line and multi-line comments in Ruby.
Learn about local, instance, class and global variables and naming rules.
Learn the data types of Ruby: numbers, strings, symbols, arrays, hashes and ranges.
Learn how to read input and display output using gets, puts, print and p.
Learn the arithmetic, comparison, logical, assignment and other operators of Ruby.
Learn decision making in Ruby with if, elsif, else, unless and case.
Learn looping in Ruby with while, until, for, each and loop.
Learn how to define and call methods, pass arguments and return values.
Learn how to find, install and manage libraries using RubyGems.
Get an introduction to Ruby on Rails, the web application framework.
Learn how to write CGI scripts in Ruby using the cgi library.
Learn how to create, read and manage cookies in Ruby web programs.
Learn about the web servers that can be used to run Ruby web applications.
Learn how to build and use SOAP and web services in Ruby.
Learn how to create a simple GUI application using Ruby/Tk.
Learn the widgets of Ruby/Tk such as labels, buttons, entries and frames.
Learn how to bind events such as clicks and key presses to actions.
Learn how to draw shapes, lines and text on the Tk canvas.
Learn how to add scrollbars and scroll widgets in Ruby/Tk.
Learn how Ruby objects are represented and accessed from C code.
Work through the Jukebox example of writing a Ruby extension in C.
Learn how memory is allocated and managed in Ruby extensions.
Learn about the Ruby type system and how types are checked in extensions.
Learn how Ruby can be embedded in programs written in other languages.
Learn how to embed the Ruby interpreter in a C application.
Learn the difference between scripts and programs.
Learn how scripting started and evolved.
Learn the role of scripting in modern software development.
Learn the main characteristics that define scripting languages.
Learn where scripting languages are commonly used.
Learn how scripting languages are used for web development.
Get an overview of the popular scripting languages.
Learn about names, literals and values in Perl.
Learn about scalar, array and hash variables in Perl.
Learn how to build expressions with scalar values and operators.
Learn decision making and looping in Perl.
Learn how to create and use arrays in Perl.
Learn how to work with lists in Perl.
Learn how to create and use hashes (associative arrays) in Perl.
Learn how to create and manipulate strings in Perl.
Learn pattern matching and regular expressions in Perl.
Learn how to define and call subroutines in Perl.
Learn the finer points of looping in Perl such as last, next, redo and labels.
Learn how to convert data to and from binary form with pack and unpack.
Learn how to work with files, directories and the filesystem in Perl.
Learn how eval evaluates code and traps errors in Perl.
Learn how to build complex data structures using references in Perl.
Learn how packages create separate namespaces in Perl.
Learn how to create and use modules in Perl.
Learn object-oriented programming in Perl.
Learn how Perl programs interact with the operating system.
Learn how to create Internet-aware applications in Perl.
Learn hands-on Internet programming with Perl sockets.
Learn the security issues in Perl programs and how to handle them.
Learn the structure of a TCL program.
Learn the syntax rules of TCL: commands, words, substitution and quoting.
Learn how variables and data are handled in TCL.
Learn decision making and looping in TCL.
Learn lists and arrays in TCL.
Learn how to read input and display output in TCL.
Learn how to define and call procedures in TCL.
Learn how to create and manipulate strings in TCL.
Learn pattern matching in TCL with glob patterns and regular expressions.
Learn how to work with files in TCL.
Learn how eval builds and runs commands dynamically in TCL.
Learn how the source command loads and runs script files.
Learn the exec and uplevel commands of TCL.
Learn how namespaces organize commands and variables in TCL.
Learn how to trap and handle errors in TCL.
Learn how to write event driven programs in TCL.
Learn how to make TCL applications Internet aware.
Learn the basics of Internet programming with TCL sockets.
Learn the security issues in TCL programs and how to handle them.
Learn how TCL interfaces with C code.
Learn what visual toolkits are and why they are used.
Learn the fundamental concepts of Tk: widgets, geometry and options.
Learn Tk through worked examples.
Learn how events are bound to actions in Tk.
Learn how to build GUI applications with Perl/Tk.