I think there are SDL and OpenGL modules for Perl, but I can't say I've ever tried them. Of course you won't be doing per-pixel graphics operations in Perl anytime soon, but it should at least allow you to play with stuff. How well it works in practice, though, I have no idea.