it seems the substr-approach is the best, as already suggested by freakingwildchild. so i will take this one.
thanks a lot, davidrw :)
PS: no homework, no user+permission-problem.
it should be "portable", this means the users should not be
forced to install any other modules.
the program should run with the modules that
come with perl itself.