PDA

View Full Version : help with understanding a snippet


bazz
11-05-2005, 04:29 PM
HI,

I have a code which uses DataDumper. I am trying to work out how it does what it does, so that I can develop it to do a bigger thing. (read the sub dirs of 6 dirs, instead of from just 1).

Can any of you, please, tell me what this means?


&printHash(\%contruct, \%contruct, '');


I know that it's an instruction to run a sub but I don't understand the rest of it.

Bazz

FishMonger
11-05-2005, 05:59 PM
It's called "Pass by Reference".

Read about it here (about 2/3 down).
http://www.perl.com/doc/manual/html/pod/perlsub.html

You can also do a google search for it and find lots more info.

bazz
11-05-2005, 06:46 PM
Thanks :thumbsup:

Bazz