Re: matching file extension .vbp and .dsp

2002-08-28 Thread Felix Geerinckx
on Wed, 28 Aug 2002 11:41:59 GMT, [EMAIL PROTECTED] (Javeed Sar) wrote: > I am reading dirextory using ls. > How to match for .dsp and .vbp file extensions Why are you asking the same questions over and over again? If there is something you don't understand from previous replies, please cons

Re: matching file extension .vbp and .dsp

2002-08-28 Thread Sudarshan Raghavan
On Wed, 28 Aug 2002, Javeed SAR wrote: > Hi, > > I am reading dirextory using ls. > How to match for .dsp and .vbp file extensions > > Is this right? > > if ($file1 =~ m/\.vbp$/) Why run an external command, chomp and do a pattern match. Why not <*.{dsp,vbp}> -- To unsubscribe, e-mail: [

Re: matching file extension .vbp and .dsp

2002-08-28 Thread Michael Lamertz
On Wed, Aug 28, 2002 at 04:59:59PM +0530, Javeed SAR wrote: > Hi, > > I am reading dirextory using ls. Don't. Use opendir and readdir. The 'perldoc -f readdir' gives you an example how to filter the result by using grep. > How to match for .dsp and .vbp file extensions > > Is this right? >