The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

This is really a stupid example. It reads (string, int, int) triads from STDIN and applies simple rules to them:

  • string must be a valid identifier;

  • it must be unique;

  • first int must be nonzero;

  • second int must be divisible by the first one.

If these conditions are met, a value is added to a global hash that is printed at the end.