in reply to Re^8: Display filenames in mbox folder
in thread Display filenames in mbox folder
say requires that you put use feature 'say'; or use 5.010; (or any version greater than that) at the top of your script. Commenting out use warnings; use strict; is not a solution.
use warnings; use strict; my $PATH = '/tmp/foo'; opendir my $dh, $PATH or die $!; print "\"$_\"\n" for grep { -f "$PATH/$_" && /^([0-9][\w.:,=\-]+)$/ } readdir $dh; closedir $dh; __END__ "1231125716.6864.bLyyk:2,S" "123test" "1422830161.R3.asus64:2,S"
If you have further trouble, please see Basic debugging checklist and How do I post a question effectively?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Display filenames in mbox folder
by peterr (Scribe) on Mar 02, 2015 at 03:55 UTC | |
by choroba (Cardinal) on Mar 02, 2015 at 09:00 UTC |