Given that Perl works on both Linux and Symbian (a Java-based OS), then I think we're pretty safe. As for it running X, that's really doubtful. X is HEAVY and has a bunch of functionality that isn't needed (though doing an X-term to your friend's phone would be kinda cool ...)
My criteria for good software:
Does it work?
Can someone else come in, make a change, and be reasonably certain no bugs were introduced?