my $struct = [ 'whaa!', undef, [undef, undef, { foo => 3}], { bar => 'baz'}, ]; my $path = "[2][2]{foo}"; $var->bind( eval "\$struct->$path" );