eXtropia: the open web technology company
Technology | Support | Tutorials | Development | About Us | Users | Contact Us
 ::   Tutorials
 ::   Presentations
Perl & CGI tutorials
 ::   Intro to Perl/CGI and HTML Forms
 ::   Intro to Windows Perl
 ::   Intro to Perl 5
 ::   Intro to Perl
 ::   Intro to Perl Taint mode
 ::   Sherlock Holmes and the Case of the Broken CGI Script
 ::   Writing COM Components in Perl

Java tutorials
 ::   Intro to Java
 ::   Cross Browser Java

Misc technical tutorials
 ::   Intro to The Web Application Development Environment
 ::   Introduction to XML
 ::   Intro to Web Design
 ::   Intro to Web Security
 ::   Databases for Web Developers
 ::   UNIX for Web Developers
 ::   Intro to Adobe Photoshop
 ::   Web Programming 101
 ::   Introduction to Microsoft DNA

Misc non-technical tutorials
 ::   Misc Technopreneurship Docs
 ::   What is a Webmaster?
 ::   What is the open source business model?
 ::   Technical writing
 ::   Small and mid-sized businesses on the Web

Offsite tutorials
 ::   ISAPI Perl Primer
 ::   Serving up web server basics
 ::   Introduction to Java (Parts 1 and 2) in Slovak


introduction to Perl 5 for web developers
References came about mainly because traditionally, Perl had a limited range of data structures with which to manipulate data

Specifically, Perl supported simple, linear data structures like list arrays, scalars, and hashes. For most of the daily chores of programming, of course, this was enough.

However, from time to time, one might need to use a more complex data structure like perhaps an array of arrays. Well, complex data structure manipulation in Perl turned out to be quite a pain in the butt. So when Perl 5 came around, everyone was pleased to see the adoption of "references" which were roughly similar to pointers from C or C++ and could be used to help construct complex data structures.

Essentially, a reference holds a scalar value representation of some portion in memory where some other Perl objectís (scalars, arrays, hashes, subroutines, etc) value is stored. Take a look at this depicted graphically:

[Reference Diagram]

As we discuss the syntax of references in the following slides, we will begin to see how this simple idea has powerful ramifications.

Previous | Next | Table of Contents