You wrote:
> pls. help me understand. what does the "!" mean below? does it mean "not"?

when you were looking at this code in Douglas Wilson's message:

> I meant '!/^\.+$/' which is usually 'good enough' for me.
>
> > grep { !/^\.\.?$/ }
> Much better.
>
> > grep { !/^\.\.?\z/ }
> Hadn't even thought of that!

In each of these, the '!' does mean 'not'.  As in 'the filenames
which do NOT match this regex'.  Check out grep() in the perlfunc
pages, or type this in a DOS box:

perldoc -f grep

The example in perlfunc even uses this form.


As an aside, if you feel uncomfortable with many of the basic Perl
expressions and idioms, you might want to look at this web-based
tutorial:

http://www.netcat.co.uk/rob/perl/win32perltut.html

It has far fewer errors than most web Perl tutorials I've come across.

And I also strongly recommend "Elements of Programming with Perl" by
Andrew Johnson.  An intro Perl book which assumes nothing.

David
--
David Cassell, OAO                     [EMAIL PROTECTED]
Senior computing specialist
mathematical statistician



---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to