The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl

use strict;
use warnings;

use Test::More tests => 1;

use File::Find::Object::Rule::MMagic;
use File::Spec;

# TEST
is_deeply( [ find( magic => 'image/*', maxdepth => 2, in => 't' ) ],
           [ File::Spec->catfile(File::Spec->curdir(), "t", "happy-baby.JPG")]
           );