Re: how to check for dots in filename

2004-06-08 Thread Steve Mayer
Sid, try: my $ty="polica.op"; if($ty =~ /\.+/) { print "Found a dot!\n"; } Steve On Tue, Jun 08, 2004 at 03:34:29AM +0530, Sidharth wrote: > hi all, > can anyone tel me how to look for files which conatain dotsin it. > i.e > file1.txt > file

Re: how to check for dots in filename

2004-06-07 Thread Wiggins d'Anconia
Roberto Etcheverry wrote: hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename using regular expression. is it correct my $ty=polica.op if($ty =m/ (.*)\.o/) The regular expresion should be /(.*)\.o/. Otherwise

Re: how to check for dots in filename

2004-06-07 Thread Roberto Etcheverry
> hi all, > can anyone tel me how to look for files which conatain dotsin it. > i.e > file1.txt > file2.txt > how to check for dots in filename using regular expression. > is it correct > > my $ty=polica.op > if($ty =m/ (.*)\.o/) The regular expresion should

how to check for dots in filename

2004-06-07 Thread Sidharth
hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename using regular expression. is it correct my $ty=polica.op if($ty =m/ (.*)\.o/) print found; plz reply soon sid