Lielie Meimei wrote: >> Hello.. >> >> I'm still newbie. >> >> Could u help me to see why in the script perl here can >> not compiled, please help me. >> >> >> ==================Begin of indexsite.pl ============== >> >> #!/usr/bin/perl
Please always: use strict; use warnings; >> $directory='/root/tmp'; >> [snip code] >> >> for $list(0..$#dirs) { >> >> if (!($dirs[$list])= { You have a missing parenthesis and a spurious '='. >> $newdir=$dir."/".$dirs[$list]; >> >> &scan_files ($newdir); >> >> } >> >> } >> [snip remainder of code] It would also help both yourself and others to spot problems if your coed was laid out better. Leaving a blank line between every line of code doesn't help. Try to leave related lines of code together and indent the code within blocks. I don't think it would have been beyond you to find that error. It would make people much more willing to help you if you appeared to have tried a little yourself. Come back to the group if you're still stuck. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]