in reply to x.25 with perl

I just googled "cpan x25". That led to:

Is that anything like what you're looking for?