> 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 you'll try to match a filename beginning with a space. > print found; > > > plz reply soon > > sid > > --------------------------------------------------------------------------------------------------------------------------------- > "There is nothing in a caterpillar that tells you it's going to be a > butterfly." - Anonymous > > ********************************************* > Sidharth M Patil > Engineer > Kyocera-Wireless (India) Pvt Ltd > 5th Floor, Phase I, Divyashree Towers, > Guruppanapalya, Bannerghatta Road, > Bangalore-560072 > Tel : 51106988 extn 5171 > ********************************************* > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>