Help for this page

Select Code to Download


  1. or download this
    #!perl -l
    use XML::Twig;
    ...
    }
    sub thrsub{
    }
    
  2. or download this
    <?xml version="1.0" encoding="UTF-8"?>
    <blah version="2.1" xmlns="blah.xsd">
    ...
      </managedObject>
    </someData>
    </blah>
    
  3. or download this
    perl -p0e "s/<managedObject.*?>.*<\/managedObject>/$& x 100/se" testin
    +small.xml > testin.xml
    
  4. or download this
    use XML::Twig;
    
    ...
        print "END Time:\t".sprintf("%02d",$hour2).":".sprintf("%02d",$min
    +2).":".sprintf("%02d",$sec2);###To print the current time
        print "\t$day2-".++$month2. "-".($yr192+1900)."\n"; ####To print d
    +ate format as expected    
    }