in reply to Getting a parent of a sub (array|hash) in a complex variable

There's no way. Also notice that it's possible to have more than one "parent", some of the parents might even belong to a different structure:
#!/usr/bin/perl use strict; use warnings; my $child = { find => 'me' }; my %struct1 = ( array => [ 1, 2, 3, 'four', [ 'five' ] , $child ], hash => [ six => 'seven', eight => $child ] ); my @another_struct = (9, 10, $child, 11);

On the other hand, see Data::Diver for searching nested structures.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,