That code is the full archive of all I have along this line so far. I couldn't upload it in tar-format. So I used patch.
To unpack patch an empty directory with this code. There is wr.pm, the code I'm speaking about. Then there is t.pl, an examplefile. Then there is com, the commands I tried. Everytime I turn debugging on with -Dt (and only then) it runs. If not, it doesn't compile.