- or download this
%presence = ( 'hi' => [
{ from => 65, to => 85 },
...
{ from => 33, to => 53 }
],
);
- or download this
%presence = ( 'hi' => [
[65, 85],
...
[33, 53]
],
);
- or download this
use constant FROM => 0;
use constant TO => 1;
- or download this
my %presence;
while(<INPUT>) {
...
# or, with arrays:
# push @{$presence{$name}}, [ $from, $to ];
}