
Jean
User

Apr 22, 2002, 12:38 AM
Views: 936
|
|
Re: [BrightNail] A challenge: Email Extractor from all directories to text file???
|
|
|
Hey BrightNail, First of all there are people like mhx who solve the same problem in 10 times less lines and I don't understand all of it either . The only thing I can say in my defense is that I prefer to write all the code by myself - this way you learn more (of course leaving more place to an error). Regarding the ($$;$) - perlguru is a fine the place to ask questions ;-) By declaring sub with parentheses you may decide how many parameters the sub will accept. Anything after the semicolon is optional. ($$;$) means that the sub accepts 2 or 3 scalar variables. Say, (%;$$$) declares sub that accepts a hash and, optionally, up to 3 scalars as its parameters. Oh, sorry - now I understand - if you're talking about the first sub ScanDir($$;$); it's not a call - it's a sub predeclaration. The ScanDir is a recursive sub, i.e. it calls itself for every subdirectory found, so you have to predeclare it - just make sure the line is identical to the original sub declaration... Hope this helps, pal  
Jean Spector SQA Engineer @ Exanet jean.spector@softhome.net There are only 10 types of people in the world - Those who understand binary, and those who don't.
(This post was edited by Jean on Apr 22, 2002, 12:38 AM)
|