in reply to stat function used with linux find gives me no data

In general, if you want to know why a Perl built-in is not doing what you want, you should check whether it succeeded. In the case of stat(), this would look something like:

my ( ... ) = stat( $output )
    or die "Failed to stat $output: $!";

In this case the output would have been something like

Failed to stat some-file
: File not found at ... line ...