| 1 | package Hash::Lazy; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | our $VERSION = '0.03'; | |
| 6 | |||
| 7 | 6 | use Sub::Exporter -setup => { | |
| 8 | exports => [ qw(Hash) ], | ||
| 9 | groups => { default => [ qw(Hash) ] } | ||
| 10 | 6 | ▶ | }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 6 | ▶ | use Hash::Lazy::Tie; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | sub Hash(&) { | ||
| 14 | 5 | ▶ | my $cb = shift; |
|
Subroutine
Hash: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 5 | my %h = (); | |
| 16 | 5 | tie %h, 'Hash::Lazy::Tie', $cb, \%h; | |
| 17 | 5 | return \%h; | |
| 18 | } | ||
| 19 | |||
| 20 | 6 | 1; | |
| 21 | |||
| 22 | __END__ | ||