Perl script?

can actionscript contact a perl script?
im gonna have to need to do this in flex but not sure if its even possible? :to: