⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
libxml-sax-expat-perl
/
examples
/
View File Name :
counter.pl
#!/usr/bin/perl -w use strict; use warnings; use XML::SAX::Expat; sub Counter::new { bless { count => 0 }, shift } sub Counter::start_element { shift->{count}++ } if (@ARGV != 1) { print "Usage: $0 example.xml\n"; exit; } my $counter = Counter->new; my $parser = XML::SAX::Expat->new(Handler => $counter); $parser->parse_file($ARGV[0]); printf "%s has %d elements\n", $ARGV[0], $counter->{count};