Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
This server has been replaced.
Please visit our current servers:
http://www.wellho.net/ for Perl, Python, PHP, Lua, Tcl, Apache, Linux, Tomcat, MySQL , C and C++ training
http://www.wellhousemanor.co.uk/ for hotel and conference facilities in Melksham, Wiltshire

Related technical and longer articles
The wonders of Perl
Tips and short articles on this subject
Environment variables in Perl / use Env
Finding operating system settings in Perl
How not to write Perl?
Using English can slow you right down!
Pure Perl
Bathtub example
Bathtubs and pecking birds
Buffering output - why it is done and issues raised in Tcl, Perl, Python and PHP
Perl - $_ and @_
Progress bars and other dynamic reports
Running a Perl script within a PHP page
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Topicalization and Special Variables - Perl module P210
Not all Perl variables are created as you run your code. Some useful information is provided in special variables before your code is even reached, and some of these special variables can be manipulated to affect the ongoing operation of your program. Perl even provides a facility that lets you leave parameters out of your source code, and it will assume a default current variable. This is known as topicalization.

This topic is presented on public courses Perl Programming, Perl bootcamp

Examples from our training material
allhosts   Special variable $/; reading whole file to scalar
cl2   Program that generates a warning
commline   Handling the command line via @ARGV
cv   rewrite of "dos2unix" in Perl
gop   Handling the command line via Getopt. Also Usage lines.
hodo   Filter looking for IP addresses of computer(s) with "tea" in name
infovars   English and short names for informational special variables
oddgrep   Using grep and map with $_
paws   Progress bar / progress reports
rqu   Use of awk-like options with Perl
sample   Filter - takes names and attempts to capitalise correctly
special1   Program using a variety of special variables
spout   Special variables to control output formatting of lists
ticker   Clock, using autoflush to update screen every second
top3   Further use of $_
topic1   Variable used many times - candidate for topicalisation
topic2   Topicalisation in use
Opentalk forum discussions related to this topic
Brain Hurts Forcing PERL to write to a logfil
replace text in a large text file
Question regarding
Extracting some fields from a data File
Dialling codes for Ireland a quick Perl Script
Pictures
At the hotel at Dharhan International Airport
An on site course in early 2004
Background information
You may download this module as a sample of our material
Topics covered in this module
Regular variables in Perl.
Special variables.
Topicalization.
Special information variables and the English module.
Reading the command line in Perl.
Special variables that provide controls.
Output control variables.
Output buffering.
Input controls.
Special variables provided by Perl operations.
Error information.
Regular expression match information.
Other special variables you may come across.
Command line options.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 600 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho