in reply to filename with question mark
G'day Brian,
Welcome to the monastery.
I also have Mac OS X Lion (10.7.5); I'm running Perl v5.14.2.
File::Find and $File::Find::name work for me:
$ ls -l abc? -rw-r--r-- 1 ken staff 0 4 Oct 03:13 abc? $ perl -Mstrict -Mwarnings -E ' use File::Find; sub wanted { /\?$/ && say $File::Find::name } find(\&wanted, q{.}); ' ./abc?
Filename completion also works. If I type ls -l abc<TAB><RETURN>, I get:
$ ls -l abc\? -rw-r--r-- 1 ken staff 0 4 Oct 03:42 abc?
Please post enough of file_collector.pl to reproduce your problem.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: filename with question mark
by bdugay (Novice) on Oct 03, 2012 at 21:37 UTC | |
by Anonymous Monk on Oct 04, 2012 at 05:58 UTC |