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