next unless m|^.*.txt\z|s;
According to this regex a filename without extension with at least 4 characters ending in txt matches. To match .txt files:
next unless /\.txt\z/s;To find out the directory your are looking at, use $File::Find::dir.
— Arien
In reply to Re(2): path greping
by Arien
in thread path greping
by Sara
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |