Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


References

September 28, 1998

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.

What is Perl 5
Introduction to Perl 5 | Table of Contents
Creating References



Up to => Home / Authoring / Languages / Perl / 5




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers