Re: basic regex question

2007-10-11 Thread Matthew Whipple
The primary problem would be that you're match seems a bit backwards. Try "if ($line =~ m/$file/)" which will cut through any extra formatting output by dir. Jim wrote: > Hi Everyone, > > I am trying to match file & subdir names from a back tic generated list. > I never find anything and there ar

Re: basic regex question

2007-10-10 Thread Panda-X
2007/10/11, Jim <[EMAIL PROTECTED]>: > > Hi Everyone, > > I am trying to match file & subdir names from a back tic generated list. > I never find anything and there are files in the directory with a correct > name. > but if i make up a list to use as filenames > it works as i expect ... any insight

basic regex question

2007-10-10 Thread Jim
Hi Everyone, I am trying to match file & subdir names from a back tic generated list. I never find anything and there are files in the directory with a correct name. but if i make up a list to use as filenames it works as i expect ... any insight greatly appreciated thanks Jim #!/usr/bin/perl