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
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...
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} =...
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---------...
Hello All -
I have some text(paragraphs, tables, ordered and unordered lists) stored in variable $text_block. I need to convert every "\n" into "<br>". The kicker is that the conversion only needs to takes place within <ol> or <ul> tags.
I've been unsuccessful at trying...
I'm trying to get "admin" out of the following:
$env_var = "iw_role=admin; iw_user=2z60z1;";
$env_var =~ m/iw_role=(.*);.*/;
print $1;
Problem is the string "admin; iw_user=2z60z1" is stored in $1 not "admin". But if I take the second semicolon off...
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="Work">
<area>653</area>
<exchange>555</exchange>...
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 = "abcd"
$var2 = "abcdf"
$var1 =~ /$var2/i
Any ideas on how I can accomplish this?
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...
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.
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...
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...
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 = "http://iwqatest.iddedit.com/usr/ns-home/iwqa-docs/tc/handouts/";
opendir(DIR,$Dir) || die "Can't open...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.