|
First
|
Prev |
Next
|
Last
Pages: 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
Running system commands Hi all Im using system("ps -fu $USER | grep $INSTANCE | grep -v grep | awk {print $2} " ) $USER and $INSTANCE are variables from my perl program However $2 is suppose to be from the pipe output. Somehow Perl is interpreting $2 to be some variables from the program itself So how can differentiate the p... 12 Jun 2006 15:17
hexadecimal addition suppose i have got a variable say $reserved=D0020078 I want to do a hexadecimal addition of $reserved with 08h. so the output should come as $output=D0020080. How can i do this. I didn't find any syntax in "sprintf" for this. Because this is a hexadecimal addition. How can i do this? thanx ... 8 Jun 2006 10:04
FAQ 4.39 What is the difference between a list and an array? This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 3 Jun 2006 15:26
Permutations Problem I am trying to filter every combination of ten letters through a spell checker, and so find valid english words. I have a problem in that ten factorial, is over three point-six million words to filter, and results in the computer crashing. (The computer is an old 2.66GHz P4 and just not up to the task). Any sugg... 1 Jun 2006 23:26
xml::twig - writing utf-8 I'm trying to read xml file and rewrite as RSS using following file. Problem is, it is not forcing UTF-8 no matter what I do. Any help appreciated. *********************** #!/bin/perl -w #use strict; use XML::Twig; use utf8; use open OUT => ":utf8"; use open IN => ":utf8"; my $shownum = 10; my $thisye... 26 May 2006 16:55
form field I am trying to see how mechanize reads the fields on this page: http://www.disboards.com/newreply.php?do=newreply&noquote=1&p=12615079 looking at the source code for example for username I see: <td class="smallfont" colspan="2"><input type="text" class="bginput" name="username" value="Unregistered" size="50" ... 11 May 2006 22:14
access denied when i run the command my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create object \n"; it works fine for 1 host but on other host i get error: Win32::OLE(0.1502) error 0x80070005: "Access is denied" at ... 25 Apr 2006 18:46
long (64bit) to binary i am trying to convert char, short in float double and long number (they probably are currently in strings form) to binary so that i can print out hte binary representation of each. i am currently using the following: $binary_int = unpack("B32", pack("I", $int)); $binary_short = unpack("b16", pack("S",... 21 Apr 2006 13:10
tr/// broken? I'm trying to use tr/// operator (instead of RExen), and do not think it works... The simplified example is perl5.8.7 -wle "$_ = q(abcdefg); tr/\x{e000}-\x{e0ff}/ /c; print" UTF-16 surrogate 0xdfff at -e line 1. Malformed UTF-8 character (UTF-16 surrogate 0xdfff) at -e line 1. abcdefg The ... 14 Apr 2006 07:07 |