Re: Help with comparison of variable

2008-09-16 Thread John W. Krahn
Jim wrote: How come this does not work? if ($file_list =~ $file_to_excl) What strings are in $file_list and $file_to_excl? I expect this to be true if $file_list contains the string in $file_to_excl - what am I missing? It won't work correctly if $file_to_excl is longer than $file_list or

Help with comparison of variable

2008-09-16 Thread Jim
How come this does not work? if ($file_list =~ $file_to_excl) I expect this to be true if $file_list contains the string in $file_to_excl - what am I missing? I also tried if ($file_list =~ m/($file_to_excl)/) any help? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e