Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ahammad

    Reading directories and subdirectories using recursion

    Hello all, I have a directory structure with lots of text files in it. I want to have a script that basically takes in the top level directory as a parameter, and it will read through all the directories and subdirectories and retrieve all the filenames. I thought that the best way to tackle...
  2. ahammad

    The best XML writer module?

    BTW 133tcamel, none of the ForceArray, KeepRoot, ForceContent, KeyAttr are recognized. Also, I do get a hash ref back. How would I use that to print the contents of the hash, or access contents of a specific tag for example? Thanks
  3. ahammad

    The best XML writer module?

    Essentially, these files will be read by the computer, but on occasion, a human will have to go in and change stuff manually. I'll give it a shot with Simple and see what I get... The other thing, there is an XML::Tidy module. I haven't found a lot of information on it though, but I guess I...
  4. ahammad

    The best XML writer module?

    Hello, I'm trying to write some data to an XML file. What is the best module to write stuff onto an XML file? I use XML::Simple to read stuff, and it works very well. I'm going to read stuff in using Simple, make some changes, and rewrite it to the same file. I tried XML::Writer but it was...
  5. ahammad

    Generating javascript through perl

    BTW, this is what I had: print "Content-type:text/html\n\n"; $someName = "name"; $someUser = "user"; [/code]{ print <<EOS; <head> <title> TEST </title> <style type="text/css"> <!-- .style1 { color: #0000FF; font-weight: bold; font-size: 30px...
  6. ahammad

    Generating javascript through perl

    Yes, I am using EOF. So how would you convert var shell = new ActiveXObject("WScript.shell"); shell.run('clt kpp Build \\"<someUser>\\" name- <someName>.ext'); into a regular print statement? Where would the <javascript> tags go? Like I said, I have no idea where to begin. I don't...
  7. ahammad

    Generating javascript through perl

    print "<javascript>do some javascripty on $var</jvascript>"; So is <javascript> defined in perl or do I have to do something else? <head> <script type="text/javascript"> function execCmd() { var shell = new ActiveXObject("WScript.shell"); shell.run('clt kpp Build \\"<someUser>\\"...
  8. ahammad

    Generating javascript through perl

    Hello, I have a perl file that generates an html file to use on a webpage. I have to add some javascript to the html part of the perl file. I already have some code to do that, but here is the issue: the javascript needs to grab a parameter from the perl information. eg., lets say I need to...
  9. ahammad

    Scanning directories for XML files and reading them

    Hello, I would like to scan a certain directory for XML files. Then I want to take in every XML file, read it, and stores the contents as a string in an array. For example, if the directory has file1.xml, file2.xml, and file3.xml, they would all be scanned and read. Then, all the contents of...
  10. ahammad

    Extracting a string from an XML file

    Hello, I have an XML file that I need to extract data from. The file has multiple lines, one of which contains the following tag: <Owner> owner's name goes here </Owner> I need to be able to extract the owner's name from the XML file. I have never programmed Perl before, but I have a pretty...

Part and Inventory Search

Back
Top