readdir is low level :) Path::Tiny is a whole nother level :P
use Path::Tiny qw/ path /; print "$_\n" for path('.')->children( qr /^messages(?:\.\d?)?$/ ) ;
In reply to Re^2: Regex for files (path::tiny)
by Anonymous Monk
in thread Regex for files
by bmcquill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |