| Server IP : 104.21.94.62 / Your IP : 216.73.217.32 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /proc/thread-self/root/bin/ |
Upload File : |
#!/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;