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 TouchToneTommy 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. loosecannon1

    results of ls -lr * to long...how to read it all?

    I ran ls -lr * on a dir and the results are too long for viewing. I can't scroll to the beginning of the results in my telnet screen. The only solution I can think of is to pipe the results to a temp file. Is that possible? What commands should I use? TIA
  2. loosecannon1

    double and single quotes in a string

    I have a CGI process that dynamically populates an html form with parsed data from other html files. Everything works fine except when the data contains double quotes. My O’Reilly book says, “Double-quote characters may be contained within strings delimited by single-quote characters, and...
  3. loosecannon1

    grep vs for loop

    Ok this one's really got me twisted up. I'm trying to set the value of a hash to another hash if two values are the same. It works with the following for loop: for(@{$IOprocedures{all}{active}}) { if ($IOprocedures{current}{number} eq $_->{number}) { $IOprocedures{current}{active} =...
  4. loosecannon1

    interpret a program's exit status

    Hi All - I'm *trying* to execute some JAVA from a PERL program... The JAVA program doesn't run and I get a exit value of 139, which is useless to me. How/where can I find the meaning of a returned exit value. Any debugging ideas are appreciated. Thanks. #------- SNIPPET---------...
  5. loosecannon1

    pattern matching between <ol> and <ul> tags

    Hello All - I have some text(paragraphs, tables, ordered and unordered lists) stored in variable $text_block. I need to convert every &quot;\n&quot; into &quot;<br>&quot;. The kicker is that the conversion only needs to takes place within <ol> or <ul> tags. I've been unsuccessful at trying...
  6. loosecannon1

    pattern matching question

    I'm trying to get &quot;admin&quot; out of the following: $env_var = &quot;iw_role=admin; iw_user=2z60z1;&quot;; $env_var =~ m/iw_role=(.*);.*/; print $1; Problem is the string &quot;admin; iw_user=2z60z1&quot; is stored in $1 not &quot;admin&quot;. But if I take the second semicolon off...
  7. loosecannon1

    Determine if an element exist

    Hi all, How can I determine if the <ext> element exists in the following XML File using XSL? <client_list> <client> <name> <first>David</first> <middle>A.</middle> <last>Peters</last> </name> <phone type=&quot;Work&quot;> <area>653</area> <exchange>555</exchange>...
  8. loosecannon1

    ? with using s///

    Hi all - I have a situation where I need to switch all copyright symbols(©) with its HTML entity number(#169;). Following is what I have, but the Regex machine won't process it. $topic =~ s/©/#169;/g; Any ideas? P.S. I left the & off the entity number so the forum wouldn't transform it...
  9. loosecannon1

    m/ / operator question

    I need to match the entire PATTERN to the entire EXP i.e. Since the following expression is not an exact match, besides case, I don't want it to return true $var1 = &quot;abcd&quot; $var2 = &quot;abcdf&quot; $var1 =~ /$var2/i Any ideas on how I can accomplish this?
  10. loosecannon1

    Extracting test from html...

    Hi all - I'm having difficulties extracting the src attribute and value, for image tags, from an html page. I looked at using substr(), but the OFFSET and LENGTH won't be consistent and I'm not knowledgeable with regexs, so I'm kinda lost... Basically, how can I extract and store...
  11. loosecannon1

    text formatting ?

    Hi All - I need to insert a dash before the third to the last character of several strings. For example: Currently --> @array1 = qw(A-12001 A-1001 A-321001); I Need --> @array2 = qw(A-12-001 A-1-001 A-321-001); Any suggestions are appreciated.
  12. loosecannon1

    Array of Hashes

    Following is my compare loop that searches for two description keys that possess the same value. Problem: If the evaluation is ever true I need to switch all values between the two AoH's. For example switch the values of $sortedPast[$i]{description} and $sortedPast[$z]{description} and so on...
  13. loosecannon1

    problem w/communication between processes

    Brief sequence of events: I have a perl script on server1 that executes a perl script on server2, perl script on server2 does some processing and writes out an xml file. Perl script on server1 then ftp's the xml file to a local dir and parse's the xml file and loads a combobox on a form...
  14. loosecannon1

    read dir on remote server?

    I'm trying to access files on a remote server and the opendir function is is failing. I'm certain the dir path is correct. Following is my code. Any ideas??????? $Dir = &quot;http://iwqatest.iddedit.com/usr/ns-home/iwqa-docs/tc/handouts/&quot;; opendir(DIR,$Dir) || die &quot;Can't open...

Part and Inventory Search

Back
Top