Search Perl pages
Professions, Sciences, Humanities, Business, ...
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Conversions, tests, processing, manipulation,...
Integer, Floating point, Matrix, Statistics, Boolean, ...
Algorithms, Memory, Process control, Debugging, ...
Data storage, Integrity, Encryption, Compression, ...
Networks, protocols, Interprocess, Remote, Client Server, ...
Timing, Calendar and Clock, Audio, Video, Printer, Controls...
Management, Filtering, File & Directory access, Viewers, ...
If this is starting to sound scarier than it's worth, relax. Perl has some
features to help you avoid its most common pitfalls. The best way to avoid
getting confused is to start every program like this:
This way, you'll be forced to declare all your variables with
my() and also disallow accidental ``symbolic dereferencing''.
Therefore if you'd done this:
my $listref = [
[ "fred", "barney", "pebbles", "bambam", "dino", ],
[ "homer", "bart", "marge", "maggie", ],
[ "george", "jane", "elroy", "judy", ],
The compiler would immediately flag that as an error at compile time, because you were accidentally accessing
@listref, an undeclared variable, and it would thereby remind you to write instead:
Source: Perl Data Structures Cookbook
Copyright: Larry Wall, et al.
Previous: CAVEAT ON PRECEDENCE
(Corrections, notes, and links courtesy of RocketAware.com)
Up to: Data structures (In memory)
Search | About | Comments | Submit Path: RocketAware > Perl >
RocketAware.com is a service of Mib Software
Copyright 2000, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments