File: 02_hashmember.pl

package info (click to toggle)
plsense 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,012 kB
  • sloc: perl: 9,767; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

my %hash1;
$hash1{key1} = "";
$hash1{key2} = undef;
my $scalar1 = \%hash1;


# astart hash key
#$hash1{
# aend equal: key1 key2

# astart hash key has word
#$hash1{k
# aend equal: key1 key2

# astart hash key of reference
#$scalar1->{
# aend equal: key1 key2

# astart hash key of reference has word
#$scalar1->{k
# aend equal: key1 key2