I am trying to run this code and am getting output as:

```
#!/usr/bin/perl

@array = (1,2,3);
$array[50] = 4;

$size = @array;
$max_index = $#array;

print "Size:  $size\n";
print "Max Index: $max_index\n";

```

### Output:

```
Size: 51
Max Index: 50

```

What is the explanation for this?