Hi, [EMAIL PROTECTED] wrote on 26.05.2004:
>Hi, John thanks you comment, the coding is work. But i'm detect have >some small problem in line 7 print "$File::Find::name\n" if $_ eq >'File1'; I test as below sample 2 is follow you coding. From here i >detect nothing return from script. > >But after i amend the coding become print "$File::Find::name\n" if >$_ = 'File1'; this work and return the result i expected. But why >perl show "Found = in conditional, should be == at ./callback line >7."? Any idea? I try put "==" to replace "=", the result return like >sample 2. To check equality of numbers, use "==", to check the equality of strings, use "eq". A single "=" assigns a value to a variable. HTH, Jan -- Either this man is dead or my watch has stopped. - Groucho Marx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>