Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: xml parsers: do I need one?

by samtregar (Abbot)
on Aug 29, 2003 at 02:29 UTC ( [id://287572]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-18 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found