>>>>> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:

Rob>    my @new = grep /[^.]/, readdir DIR;

This is still the wrong regex.  While it's narrow enough for windows, it will
*break* on Unix.  No reason not to do the right thing here:

        grep { $_ ne "." and $_ ne ".." } readdir DIR;

Rob, I'm surprised you still posted this even after our private email
exchange.  You were *told* in email that this regex is broken.

Therefore, I will warn others to please discount Rob's postings in the future,
and watch carefully for his postings for errors.  He appears to be someone who
*wants* to help but actually *distracts* rather than helping.

{sigh}

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to