I note, for the record, that the Artistic License says "or derivatives thereof"
It's a grey area here; I think it's pretty clear that if I went through your code and just changed the variable names (say, something as simple as switching the cases) I haven't really produced anything new. While there's a little of the author's own work in a paraphrase of a natural language document, that's still probably close enough to count as a "derivative work."
Philosophy can be made out of anything -- or less