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
> 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
> 
> ---------------------------------------------------------------------------------------------------------------------------------
> "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>


Reply via email to