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";
        }
    }