HEX
Server: Apache
System: Linux web2.fi.cloudlogin.co 5.10.241-xeon-hst #3 SMP Fri Aug 29 13:26:38 UTC 2025 x86_64
User: otjinenec (286614)
PHP: 8.3.25
Disabled: NONE
Upload Files
File: //usr/bin/srx2table
#!/usr/bin/perl

use strict;
use warnings;
use RDF::Trine;

my $data;
if (scalar(@ARGV) and -r $ARGV[0]) {
	my $file	= shift;
	$data	= do { local($/) = undef; open(my $fh, '<:encoding(UTF-8)', $file) or die $!; <$fh> };
} else {
	binmode(\*STDIN, ':encoding(UTF-8)');
	local($/)	= undef;
	$data	= <>;
}

my $iter	= RDF::Trine::Iterator->from_string( $data );
print $iter->as_string;