Forum: Cfengine Help
Subject: Re: Questions about the reference manual
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18107,18211#msg-18211
In my opinion all sysadmins should have some basic programming theory. If you
are writing shell scripts and perl code without the theory then I fear for your
code and the hosts it runs on.
depth_search => urecurse("inf");
means, for depth search use body part (think subroutine call) urecurse and pass
the string 'inf' to it.
body depth_search urecurse(d) {
means, depth search body part who's name is urecurse and assign the passed
value to the scalar 'd'. Think of perl's shift.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine