It is too much work to specify full class named on each spot where you want to create a new object with data. Therefore, abbreviations are introduced. Use new(abbreviations) or abbreviations() to add extra abbreviations or to overrule some predefined.

The above defines two items: one User::Identity named markov, and an e-mail address tux. The user has two collections: one contains a single location, and one stores two e-mail addresses.

To add to the confusion: the location is defined as field in email and as collection. The difference is easily detected: if there are indented fields following the line it is a collection. Mistakes will in most cases result in an error message.

If you want to continue on the next line, because your content is too large, then add a backslash to the end, like this:

email home
description This is my home address, \
But I sometimes use this for \
work as well
address tux@fish.aq

Continuations do not play the game of indentation, so what you also can do is:

email home
description \
This is my home address, \
But I sometimes use this for \
work as well
address tux@fish.aq

The fields comment and address must be correctly indented. The line terminations are lost, which is useful for most fields. However, if you need them, you have to check the description of the applicable field.

Often you will have the need to add the same information to two items, for instance, multiple people share the same address. In this case, you can create a reference. However, this is only permitted for whole items: you can refer to someone's location, but not to the person's street.

Either the specified $type does not exist, or that module named $class returns compilation errors. If the type as specified in the warning is not the name of a package, you specified a nickname which was not defined. Maybe you forgot the 'require' the package which defines the nickname.