You can use Inline::Befunge under the same terms as Perl itself.