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