CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [BrightNail] A challenge: Email Extractor from all directories to text file???: Edit Log



Jean
User


Apr 22, 2002, 12:38 AM


Views: 1941
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 Wink and I don't understand all of it either Blush. 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 SmileSmileSmile


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)


Edit Log:
Post edited by Jean (User) on Apr 22, 2002, 12:38 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives