This is an example of FLAP in action.
Download Flash 6 player from here if you don't have it. It even works on Linux!
This shows various data types passed through AMF to the perl backend and sent back.
The most interesting this is not so much what it does, but how it works. The Perl script utilizes the "service discovery" approach - you simply put Perl modules into a certain directory, and they are automatically registered as services.