Structures
 
Structures in Perl
  • Perl has no built-in structure support
     
  • Structures can be emulated by using hashes
     
  • Nested structures are done with references to hashes
my %amy = ( name => "Amy Lester" );
my %person =
    (
    name => "Andy Lester",
    phone => 7660,
    email => {
        work => 'alester@fsc.follett.com',
        home => [ 'andy@petdance.com', 'andy@chicagomusic.com' ],
        }
    spouse => \%amy,
    );
Index
Introduction
What Is Perl?
Perl Resources
Running a Perl Program
Perl Thinking
Data Types
Scalars
Strings: Single Quoted
Strings: Double Quoted
Scalar operations
Scalar comparisons
Variables
Lists
Using Lists
Control Structures
Hashes
Hash Manipulation
File Handling
Regex Matching
Regex Matching: Ex. 1
Regex Matching: Ex. 2
Regex Replacing
Subroutines
Anonymous subs
References
Structures
Modules
Modules: File::Find
Modules: Internet
Modules: Win32::*
Everything Else
  Next page >>>