1,633 Topics
| |
Hi, I want to search the log file for a string and extract all data until the end of that line where the search string is found. For example: A line in the file reads like below: [28/04/2010 11:17:53 GMT]PositionPoolCalculation.java(339):getPosCalculation[INFO]BUNP: B123456:1234567:ABCD ANP: B123456:1234567:ABCD:2 post LCN: DESabcdefgh I want to search … | |
Hi, I need to search 3 different servers and list the output of the directories to a specific file for each server. I understand how declare the constant(s) but unsure of how to iterate through all of the constants and list the file output. Any ideas would be helpful. Perlnewbe … | |
hi im new with perl. just read some tutorials 3 days ago. just wanna ask if perl can automate a mouse click?.. how is this possible?.. could u help me with this?.. | |
| Howdy all. I had an assignment to build a subnet calculator that would take (and validate) an IP and CIDR input and return the net_id, broadcast_id, first and last assignable IP addresses, and the number of assignable IP address. Would anyone care to look at my code and offer criticism? … |
Hi, I'm a Perl newbie and I have a job to do, but I can't do that! I'm almost crying! =( Please, someone help me? This is my problem: I have a txt file like this Config.txt SourceIP = 10.1.1.1 SourceMAC = 00d0047203fc IPProtocol = 7 -------------------------------------------- Then I have … | |
| Hello! I've done some Googling about this, and many sites say that "hasing" is a better alternative than using a variable name with a variable name. I don't understand the concept of hashing, and what I'm trying to do seems small and insignifant, so I was hoping someone could help … |
I'm new to perl and need to read a txt file into a hash and then perfrom the following. Read in the file Create a Hash For each word in the file, count how many times the word occurs. Store the word a hash which is indexed with the words … | |
i have button in javascript, when i click ,it calls a CGI perl script and returns a download popup to me. Prob--> When javascript calling the script it starts a new thread redirecting to perl script and end. So i m not getting any action or response inside javascript. What … | |
I have downloaded a CPAN package 'Clickatell.pm' for use with a CGI script. I have uploaded it to the cgi-bin folder, set the permissions, but I can't get the script to use it. #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; use lib '/websites/123reg/LinuxPackage06/ma/sa/re/masarestaurant.co.uk/public_html/cgi-bin'; package Clickatell; my $catell = Clickatell->new( API_ID … | |
I'm trying to send a http request to an url and check the content of the url using following script. However, by just check whether the content is empty or not can't tell whether a site is working. #use all required modules here; my $url = "a url here"; my … | |
[code] #!/usr/bin/perl $run_env = "test"; $parm_file = "wf_PBM_DHT_CS90_CH_Hist_Extract.parm"; $sys_id = "PWLP"; #div name based on the session's call $div = "WLD"; $CH_TYPE = "CS90CH"; #process name will be the process name in the trigger file $PROCESS_NAME = "CH_CS90"; #sys_name would map to the applicable Tier e.g. FAC=Facets, WGS=WGS, STR=STAR…. $sys_name … | |
i am passing a varible which i want to process as utf8. but correctly i am not able to process the varible passed from the command line in perl.. | |
Hi there I am translating PERL code into PYTHON Code My PERL code is if ( my $client = $dealing_clients->{ $data->{fundId} } ) And i translated it into python as if (client = dealing_clients[data["fundId"]]): But it is giving my following Error "Syntax Error While detecting Tuple" Any one know how … | |
Hello, I’m using Perl script where executing SQL query which connecting to SQL loader to insert my data into table. When the script runs the success status returns, but the loader doesn’t load anything to DB, I want to get the Perl return value to compare it. Here is the … | |
Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc … | |
Hi there I have following hash related code in Perl that i need to translate in Python if ( exists $legs->{$reference} ) { logg(" 2nd leg of swapes: $ref - merging"); my $swap = merge_swap_legs( $legs->{$ref}, $fields ); $ref = new_fk_ref( $fxall, $ref, $swap ); } else { $legs->{$ref} = … | |
Hi i want to install this cpan CPAN-1.9402.tar.gz Crypt-Rijndael-1.09.tar.gz the prblem is t install it from /tmp and not networking Thanks Danny | |
Hi... I have been having problems getting sendmail to work. 5 hours and counting. Here's what I have: #!/usr/local/bin/perl -w use sql; use CGI qw/:standard/; use DBI; $mail_prog = "/usr/sbin/sendmail"; print "Content-type: text/html\n\n"; $to='member@hotmail.com'; $from= 'info@mydomain.com'; $subject='Your membership'; open (MAIL, "|$mail_prog -t"); print MAIL "To: $to\n"; print MAIL "Reply-to: $from\n"; … | |
Hello, I would need your help, I have a Perl code that makes a folder structure, it reads a txt and creates the folders Now I have an issue I have to go through this folder structure and insert a file delete_me txt is yhe lowest level, and I have … | |
Is there a way to store multiple values to a key without using any extra modules? Here is the code I have so far: [icode] $key = $ref->{$uniqueKey}; my $systemKey = GetSystem($key); push @{$referenceTable{$key}}, $systemKey; my ($k, @v); # SET UP THE TABLE print "<table border='1'>"; print "<th>User</th><th>System</th>"; # EXECUTE … | |
Perl newbie here… need some help and suggestions. I’ve searched for many examples but so far it’s all for array operation for two arrays. I have three arrays and want to find the common value in the three array and list them out : Array 1 = {0, 1,2,3,4,5,6,7,8,9} Array … | |
Hi, I've a csv file consisting of two columns - one with "Last Name" and other with "Email Address". I would like to match Last Name ( not an exact but a contain match), and if didn't match, populate third column with "0". Does anyone has a perl script to … | |
Hi, I am looking for a conversion tool for converting an svg file into a jpg file. Does anybody know of a perl library which can do it or a tool with as few dependencies as possible and which can be accessed by command line. Thanks, Aj | |
Hi, I have 2 arrays and i have to compute the difference between arrays in perl. Here is the code. [code] @a=qw(20095053 19947571 19933274 19910458 19875498 19863670 19747485 19699809 19609242 19602509 19400988 19260844 19190289 19067769 19064710 19056771 19036087 18698092 18692784 18687424 18570886 18562159 18478156 18462614 18425777 18292846 18292840 18390561 18381856 … | |
hi i want to connect to my facebook with perl i just start now to programming in perl before perl i programming in C. i see several codes but all the codes not work!!! i want to connect to my facebook and to my msn messanger. very important that i … | |
I use the following script to open up outlook express and grab all e-mail contents. However, I only get a bunch of pipelines (|) instead of characters. I can't find anybody else who has run across this online, and was wondering what the problem is. Here's the code: [CODE] open(MAILER, … | |
Dear all, I am a newbie to perl. I want to read file line by line in two sets i.e., odds and even. Means it should first read first line and second line then check for regular expression in second line with condition to print or not then move forward … | |
Hi All, I have written one custom script in bugzilla called duration.cgi which calculates the bug duration. I am getting below error message while trying to access link : [url]http://localhost:8200/duration.cgi[/url] as below: [B]Software Error Insecure dependency in parameter 1 of DBI::db=HASH(0x275840c)->prepare_cached method call while running with -T switch at C:/Bugzilla/duration.cgi … | |
Hi, can any one help me out in list out the choices for the existing files through perl script | |
I'm writing a program which searches through a list of medium sized text files for a particular keyword string. This string may appear more than once in the file. The files are generally parsed out for readability, so they have hard returns at the 80 column mark within paragraphs. As … |
The End.