in reply to complex data structures
#!/usr/bin/perl -l # http://perlmonks.org/?node_id=1172399 use strict; use warnings; my @AnData = 'A'..'Z'; my %AN=(data => \@AnData); print $AN{data}[0x16], ' ', $AN{data}[22];
prints:
W W
Note that 0x16 is the same as 22.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: complex data structures
by perltux (Monk) on Sep 23, 2016 at 03:12 UTC | |
by FloydATC (Deacon) on Sep 23, 2016 at 06:30 UTC | |
by tybalt89 (Monsignor) on Sep 23, 2016 at 07:03 UTC |