Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Background
Every operation has a result. Easy - store it to a varibale. But operations have side effects too that you can read from special variables. And the very act of running your script provides a wide variety of extra information that you may want to use ... and is there, if you know where, for the asking.
Related technical and longer articles
Solution Centre - all article listing
Solution Centre - all article listing
Tips and short articles on this subject
Object Oriented Ruby - new examples
Constants in Ruby
Variable scope - what is it, and how does it Ruby?
Ruby to access web services
Some Ruby programming examples from our course
Variable types in Ruby
Ruby - Totally Topical
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
Ruby module R110
Special Variables and Pseudo-Variables
Exercises, examples and other material relating to training module R110. This topic is presented on public courses Learning to program in Ruby, Ruby Programming

Ruby Programming - A Modern, Object Oriented, Portable Scripting language. This quickly moving course covers the fundamentals of the Ruby language for ...
http://www.wellho.net/course/rpfull.html  [course]
Learning to Program in Ruby - A Modern, Object Oriented, Portable Scripting language. Ruby is very much an object oriented language, and we concentrate ...
http://www.wellho.net/course/rlfull.html  [course]
/pre div class= introsubheads php if (! ereg( Z , offstring)) xs = ! ; a href= toggle= = xs Z#Z target= _self img src= /whimg/expdcont.gif ...
http://www.wellho.net/solutions/qindex.html  [longer article]
In Ruby: * Variable with names starting with a lower case letter are local variables * Names starting with a capital letter are constants - you can ...
http://www.wellho.net/mouth/1586_Var ... -Ruby.html  [short article]
div class= introsubheads ABOUT OUR SOLUTION CENTRE BR /div You ll find a series of longer technical articles on this part of our web site - they re ...
http://www.wellho.net/solutions/melksham ... sting.html  [longer article]
I was giving a Public Ruby Course to a small group at the end of last week ... and having a small group gave me the opportunity to write some demonstrations ...
http://www.wellho.net/mouth/1587_Som ... ourse.html  [short article]
If you want to use a Ruby program to access an RSS feed (or some other XML or HTML data), you can start with the standard Net::HTTP module ... full (working, ...
http://www.wellho.net/mouth/1891_Rub ... vices.html  [short article]

Every operation has a result. Easy - store it to a varibale. But operations have side effects too that you can read from special variables. And the very act of running your script provides a wide variety of extra information that you may want to use ... and is there, if you know where, for the asking.

This topic is presented on public courses Learning to program in Ruby, Ruby Programming

Examples from our training material
av   Command Line Parameters to a Ruby program
c3.rb   Process every line via topicalisation
cc   begin block
gloop1   Topicalisation - before
gloop2   Topicalisation - after
pgv.rb   Predefined global variables and resources
rerub   Cleaning an incoming string in Ruby
ruby_awk.rb   implicit loop around code - awk mode
tiny   Autosplit mode, a loop round your code, BEGIN and END
topic.rb   Topicalisation - the use of $_
vvx   variable types
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
ARGV, $0 and friends - the command line.
Other special variables from $: through $$ to $<.
Environment variables.
Pseudo-variables.
Reserved words in Ruby.
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 700 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.


You can Add a comment or ranking to this page

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