- or download this
[sam@localhost xml_test]$ time ./parser.pl > parser.out
...
[sam@localhost xml_test]$ diff parser.out regex.out
- or download this
#!/usr/bin/perl -w
...
return join($sep, map { get_word() } (0 .. ((int(rand($num)))+
+1)));
}
}
- or download this
#!/usr/bin/perl -w
...
while($xml =~ m!<message>([\w\s]+)</message>!g) {
print $1, "\n";
}
- or download this
#!/usr/bin/perl -w
use strict;
...
print "\n";
}
}