How do I use File::Find::Rule in taint mode?
I am trying to get a list of subdirectories in a given directory using something like the following:

    #!/usr/bin/perl -wT
    use strict;
    use warnings;
    
    use File::Find::Rule;
    use Data::Dumper;
    
    my @subdirs = File::Find::Rule->maxdepth(1)->directory->relative->in('mydir');
    
    print Dumper(@subdirs);

However, running this gives the result:

>`Insecure dependency in chdir while running with -T switch`

I understand that [`File::Find`](http://perldoc.perl.org/File/Find.html) has options for dealing with taint mode, but I can’t seem to find an equivalent in [`File::Find::Rule`](http://search.cpan.org/~rclamp/File-Find-Rule-0.30/lib/File/Find/Rule.pm). Is it possible to do the above? Should I use an alternative method for listing subdirectories? Am I completely misunderstanding something obvious that I really should understand about taint mode?
How do I use File::Find::Rule in taint mode?
===

I am trying to get a list of subdirectories in a given directory using something like the following:

    #!/usr/bin/perl -wT
    use strict;
    use warnings;
    
    use File::Find::Rule;
    use Data::Dumper;
    
    my @subdirs = File::Find::Rule->maxdepth(1)->directory->relative->in('mydir');
    
    print Dumper(@subdirs);

However, running this gives the result:

>`Insecure dependency in chdir while running with -T switch`

I understand that [`File::Find`](http://perldoc.perl.org/File/Find.html) has options for dealing with taint mode, but I can’t seem to find an equivalent in [`File::Find::Rule`](http://search.cpan.org/~rclamp/File-Find-Rule-0.30/lib/File/Find/Rule.pm). Is it possible to do the above? Should I use an alternative method for listing subdirectories? Am I completely misunderstanding something obvious that I really should understand about taint mode?