First  |  Prev |  Next  |  Last
Pages: 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
waitpid woes on Solaris, Perl 5.8.8
I am getting intermittent unexpected result from waitpid on Solaris 9 running Perl 5.8.8. Here is the scenario (the bare bones code is below). Program_A, written in Perl, is invoked about a million times every day. Most of the times, it invokes (using fork-exec) Program_B which is written in C++. Program_A use... 20 Feb 2007 19:35
a cgi for view unix logs?
I am trying to use this to output the last 100 lines to a cgi page, but because it do not print \n in HTML, so everything is mess up. I do not want to try to open a file, read the last 100 lines and close the file. Because I think it would be slow than Unix "tail". $done = system("tail -100 $filename") tail in... 27 Feb 2007 04:35
Win32: Need the intact ARGV string
I am debugging an application under Windows 2003 that calls a Perl script for logging purposes. The log string looks something like this: call_type: I alert_id: "29 " data_center: "LA " I am using a Perl script as the target of this execution, but the trick is that I need to see the *intact* string that is bei... 20 Feb 2007 03:40
Regex: Why is overreaching necessary?
Dealing with an array of fixed length strings. Goal is to select based on certain columns. After rather lengthy study of the camel book and searching on the web for various examples, I thought this should work: X @foo2 = grep(/^.{50}(1121|1217|1256|2033).{6}$/,@foo1); It did not. I consulted with a heavy Perler... 24 Feb 2007 18:53
perl subroutine
what are the difference of below 2 factorial function? the 1st return 0; the 2nd return factorial result; what 's the problem of 1st one? sub factorial { $number = $_[0]; if ( $number == 0 ) { 1; } else { $number * factorial( $number - 1 ); } } sub factorial ... 8 Feb 2007 18:02
More Multiple Classes per File (was Pretty Format...)
In article <52u355F1qbe5qU1(a)mid.dfncis.de>, anno4000(a)radom.zrz.tu-berlin.de wrote: Put a bare block around each class definition, so you isolate lexicals and can re-use variable names. Ah, that's the kind of sweetener that I really appreciate. I avoid globals like the plague but the block makes the whol... 8 Feb 2007 12:14
perl compare function
for the code below i got error at line 14 if ( $string1 gt $string2 ) print "$string1 $string2"; what's the problem? thanks print "Enter the first string: "; $string1 = <STDIN>; print "Enter the second string: "; $string2 = <STDIN>; chomp $string1; chomp $string2; if ( $string1 gt $string2 ) ... 7 Feb 2007 18:49
find lines in a file
I have log files that I want to parse through every day and search for failures and errors. I understand how to open the file and search for failures and errors but I may have several lines that have the same error. What I want to do is print the first occurence to a file and count each occurence after the first ... 19 Feb 2007 09:25
Someone can tell me how integrate VC++ with perl
On Feb 6, 1:09 pm, Mirco Wahab <wahab-m...(a)gmx.de> wrote: lala4life wrote: I look for some doc in the network, but didn't find any usefull, i have experience programing with perl but no with VC++, at least with this topic. To do what? If someone can tell where can get examples it really... 8 Feb 2007 03:08
Net::SSH::Perl - Channel open failure?
I am attempting to write a couple of test scripts to use SSH for connecting to a host, executing commands, and displaying the results.. I've exhausted my google-fu (even Google code search) and hoped someone might be able to enlighten me as to why this script is failing. I'm receiving "Channel open failure: 1:... 12 Feb 2007 11:02
First  |  Prev |  Next  |  Last
Pages: 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581