NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Wow... (Score:2)
Maybe it was your example, though. Neat stuff, though!
Peace,
Jason
Re:Wow... (Score:2)
Part of the issue with any state machine is that the criteria can be confusing to an outsider if they don't know the business rules. In this case, the state machine tracks some of the dependencies for setting up Bricolage [bricolage.cc] on PostgreSQL. The "root user" state simply means "if we have the Postgres root user, we can install. If not, check to see if we have a normal user and, if so, check to see if they can do everything necessary for the install. When I was using a bunch of nested if/else statements, it wa
permissions check (Score:2)
Re:permissions check (Score:2)
It was code in progress. I had a dummy "never fail" state set up while I was figuring out the best way to proceed.