RE: [Perl-unix-users] match function

2003-08-14 Thread James Schappet
:14 PM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] match function I like to check if file with .doc extension will be excluded. for example, if file name is todo.doc: How can I use match function? What I did is not working. What I tried: if($file !~ /\.doc/) { do something } or if

Re: [Perl-unix-users] match function

2003-08-14 Thread $Bill Luebkert
Hong Wang wrote: > I like to check if file with .doc extension will be excluded. for example, > if file name is todo.doc: > > > How can I use match function? What I did is not working. What I tried: > > if($file !~ /\.doc/) > { > do something > } > > or > > if($file !~ /.doc/) That shou

[Perl-unix-users] match function

2003-08-04 Thread Hong Wang
I like to check if file with .doc extension will be excluded. for example, if file name is todo.doc: How can I use match function? What I did is not working. What I tried: if($file !~ /\.doc/) { do something } or if($file !~ /.doc/) Thanks in advance! Hong