$bef[$mid] # is an entry out of the array @bef $mid[$aft] # is an entry out of the array @mid $bef[$mid$aft # is a syntax error becuase there's no ] on the array entry [$bef] # works because they're no other way to look at the [