in reply to Strange array reference behaviour (bug?)
foreach my $test (@$ref) { my $test2 = substr($test, 0, 2); } [download]