sito has asked for the wisdom of the Perl Monks concerning the following question:
However, this doesn't work, as no files starting in `.` are displayed. If it makes any difference, I'm on perl 5.10, on Windows XP Pro. Does anyone have a solution for this, without completely rewriting? Thanks,@files = <$input$dir>; foreach $file (@files) { if(-f $file && ($file =~ /\.DS_Store/i)) { print "$file\n"; unlink $file; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: View hidden files?
by ikegami (Patriarch) on Dec 14, 2008 at 16:33 UTC | |
by Tanktalus (Canon) on Dec 14, 2008 at 22:19 UTC | |
by sito (Initiate) on Dec 14, 2008 at 18:13 UTC | |
by ikegami (Patriarch) on Dec 14, 2008 at 22:12 UTC | |
|
Re: View hidden files?
by jwkrahn (Abbot) on Dec 14, 2008 at 16:55 UTC | |
|
Re: View hidden files?
by poolpi (Hermit) on Dec 15, 2008 at 08:56 UTC |