2,452 Topics
![]() | |
Perl/apache if we run the Perl script on apache for display the result of Linux command it is not able to execute the Linux command and not display it into the browser. eg. We want to display the result of "ping" command but not able to identify what is the … | |
I have been coding in Perl without using "my" before the variable name.. when should I use MY and why? | |
Hi All, I am getting the following error below when running my CGI script. I have went through the code but can't seem to sift where exactly it is saying on each of the respective lines. For the error on line 65 is it because I have a localized variable … | |
So I received awesome help from here before but forgot to ask at the time about one small thing. He taught me how to exclude my "ID" field displaying and about the implode function in PHP but if I display my data using it is there a way to make … | |
Hello, I have a perl program where I must mutate a DNA sequence while maintaining the same base pair distribution and then randomly mutate the sequence 10 to 20 times and find the similarity between the mutated and original sequence by calculating an adhoc score. This is what I have … | |
Hi, I am kind of new to PHP, learning through books and online resources but I am having difficulties with what seems like an easy problem. [CODE]if($pageid == 1){ echo ""; } else { [COLOR="Green"]echo '<form action="delete_ad.php" method="post">'; echo '<input name="deleteid" type="text" value="" id="deleteid" hspace="10"/>'; echo '<input name="delete" type="submit" value="Delete … | |
Hello, I've been teaching myself on how to code with perl. My current project that I am working on is socket programming. I would like to transmit a message from one server to another. When I attempt to execute my client code, the following error displays, "send: Cannot determine peer … | |
I am hurting here, been tasked with trying to add a bunch of new content to this script, but since it was written 10 years ago and continuously patched up badly since then, I have no clue what does what anymore..can someone comment in text that will at least explain … | |
Hello, I need help to fix a perl script that obtains a DNA file with a FASTA sequence and randomly shuffle the sequence while maintaining the overall distribution of bases. I must also randomly shuffle the sequence 10-20 times. Then measure the similarity between the shuffled sequence versus the original … | |
I have a triple drop down menu and when I select an option for first drop down, based on that I get the values populated in the second drop down but these values in the second drop down do not clear even though I change the change the option of … | |
Hello guys, I need your help. Newbie here! I want to know how to get response.redirect in hyperlinkfield. Example: When I click the the link, it response to the next page and the column of my gridview appears but how can I get the labels and tables? Thanks in advance | |
How would I go about writing a Perl Progam that can take user entered lines from the keyboard and then store them in an array? Whenever the user enters "QUIT" the program will print out all of the lines sorted. THen you must change the program so that it will … | |
Hi Danimates, Recently i faced a problem while running the program... I had a site called.... SNIP This is POST method website....i written all REGEX parts well.. But writing in Program in content(" ") v should copy the content... But from that site i [B]didnt find the content of that … | |
How to write a Perl program that adds up the numbers in a file and prints out their sum, average, max and min. There is one number per line. You must print the average out showing two digits after the decimal point. The numbers are: 50 20 3 4 5 | |
Hi,i was a beginner in perl .please try to help m ein these areas. If i use [CODE]du -sh[/CODE] in my perl script i was getting output as 54M /home/abhinav/compare or 569M /home/abhinav/debug But i want only the size that is either like 54m or 569m and i dont want … | |
I have a code which parses/validates all the fields present in i/p weblog file. My first field is ip_address & currently can have a value like 12.45.24.245 Now I have a change where ip_address can be a dummy value something like $10.00 or $23.123.34. or $12.233. How should I change … | |
Dear fellow members, I'm developing a Perl program that can be used on Linux hosts to perform certain tasks. Planning to release a premimum version of the program that will be run on servers with public IP address for a low price. How can I setup a license system incorporated … | |
Hi Experts,I have 2 pages with the name farmmgmt.php and assigndoc.php. In farmmgmt.php I insert certain fields like cowid and then get redirected to assigndoc.php for assigning doctors. After assigning when I update the table it does not do so.. I want to update the table for the recently inserted … ![]() | |
Hi, Currently I have two files: (I've labeled the columns to help with the explanation) mature.txt [0m] [1m] [2m] [3m] [4m] [5m] [6m] [7m] scaffold1088 121550 D 18 ppy mi 164g 88.6 scaffold1141 262270 D 18 ppy mi 896 90.2 scaffold1168 54635 D 18 peu mi 2138 87.5 scaffold1168 56190 … | |
Hello All, I am getting the infamous Argument ___ isn't numeric in sprintf. I've looked around but I can't seem to fix the issue. It seems to occur if it has a 0. in front of the numeric pattern that causes it. Does anyone have any idea of what I … | |
Hello All, I am trying to find where the error is when I compile this Perl script but I can't seem to locate it. It is stating that it "Can't find the string terminator "FOOTER" anywhere before EOF at reddrill.pl line 54. I have went through and checked for extra … | |
I'm trying to perl -w the following: [code] #bonus.cgi - calculates a bonus amount and rcreates a dynamic web page which contains form data & a bonus amount print "Content-type: text/html\n\n"; use CGI qw(:standard); #prevent Perl from creating undeclared variables use strict; #declare variables my ($name, $sales, $rate, $bonus); #assign … | |
I think this should be easy but I'm not a techy. Problem: The checkout screen on my site allows the logged in user to change their address details but doesn't appear to update the stored data before sending them off to the payment service provider. The code on the CGI … | |
I have a perlScript form that asks for a file e.g. [CODE] <%@LANGUAGE='PerlScript'%> <% $Response->Write(" <html> <head> </head> <body> <form action='editRST.asp' enctype='multipart/form-data' method='post'> <p> Please specify a file:<br> <input type='file' name='file' size='35'> </p> <div> <input type='submit' value='Send'> </div> </form> </body> </html> "); %> [/CODE] and another to gather the data … | |
I received the following error, but I don't understand how to fix it. Help? "readline() on closed filehandle IN at transcribe.pl line 21." [CODE]#!/usr/bin/perl #transcribe.pl #convert DNA to RNA (T to U) use strict; use warnings; #TASK: Read DNA sequences from ‘DNAseq’ input file – #there is one sequence per … | |
I need to keep track of the number of times a user visits a website. I have the code done but I don't think I am counting the correct way as the dynamic web page keeps showing the same number of visits. Any tips would be so helpful! [CODE]#!/usr/bin/perl use … | |
I am very very new to perl and am not even sure if awk is what I should be using instead. Hopefully someone out there can help me put together a script for this problem. Here is some sample data (it is tab delineated in my file): 20 scaffold189_125 13634 … | |
I'm currently designing a new website for the company I work for. I get the page to display properly in Firefox. The banner lines up properly with the backdrop banner I have set as the background image. However in IE7 everything gets misaligned. I can't quite figure out why it's … | |
How do you write a perl script to determine the number of measurements, average, variance, standard deviation? This is the script that I have so far and it is not working. my @data = (6, 9, 7, 23, 30, 18); my @data2 = (10, 5, 8, 11); my @data3 = … | |
Hi all, I'm relatively new to Perl and particularly new to regular expressions. This is really simple script I've just mocked up. All it does is to take the input string and check if it's in the correct format or not. Here are some examples of correct format (will always … | |
How do you create a Perl Program that asks a user to enter two numbers and assign those numbers to selections in a text and then reverse the text? I think I am supposed to use splice array and the reverse function but it is not coming out properly. print … | |
Hi all, I am attempting to use the LWP::UserAgent to request a Soap call, and in the response the request returns a TIFF image. When I write the contents out to a file(binary mode), the file also contains header information. How would I go about extracting just the body(TIF image) … | |
Hi, I have a perl cgi script as follows: [CODE] $|=0; close(STDERR); open(STDERR, "> E:\\output.err"); # instantiate a new CGI object my $cgi = new CGI; my @params = $cgi->param(); my $length = @params; my $calc= $cgi->param($params[0]); print "something on the browser" print "tell the user that so and so … | |
Hi, I am new to the perl scripting and need your help regarding one issue. I have a piece in my perl script which looks something like below - if ($rec{user} =~ /Major |Minor |Low |High /oxi ) { print "Reject" . $_ . "\n"; next; } Now the list … | |
Hi, I have some problem with my website. I design/code and testing the site with Firefox. But when I try to display the website using IE, Opera and even Chrome, the website is mess. The layout seems to be out of order, but doing fine in Firefox.. URL: [url]www.robofair.com/event[/url] Hope … | |
Hi, I have one problem in perl script development. I have big logic executing in script and finally should save in directory structure specified. directory structure is created at runtime dependind on user runtime arguments by argv my MAKEPATH.the script works if i gave destination directory as /home/abhinav/direc1/ (/home/abhinav/) is … | |
![]() | Hello all! I'm a newbie to Javascript and I have what seems to be a simple task that has stumped me. I have a parent/child scenario where the child is a pop-up "control panel" with hyperlinks that control the parent page. The idea is to click a link and it … ![]() |
Hi all, There are not too many threads that I start, but I wanted to share with you all something I discovered last week that saved me tons of time. I have a program, which is way to long and complex to post here, that basically opens excel, reads data … | |
We have a routine on our website that needs to pull information from a text file. The file is a tab delimited file with double quotes surrounding the text. The routine needs to compare these values to another imported list of values that do not have the double quotes around … | |
Hello Everybody Specially for php How can i extract hyperlink URL from exel sheet I want to know How can i extract hyperlink URL from exel sheet cells. | |
Consider a text file that looks like this ----------------------------------------------------------------- ABC this is the first line XYZ this is the second line or line 2 MNO this is the catch POD this is a line NFY this is a line POR this is a line LKM this is a line ABC … | |
Hello! I need help whith perl. I have 2 files, i whant to open them compare one column and if they iqual i whant to write at the 1ª file some columns of the second file. Exemple: File 1 2; apartamento; T2; manuel; 120.000€; Activo 4; moradia; V4;José; 250.000€; Suspenso … | |
I had been working on perl netssh in office. Now i need to configure it at home bt i am not able to. I installed activeperl. Running command makefile gives error "Mingw or c compiler not installed". then it automatically invokes mingw installation. But this installation terminates in between with … | |
Hello everybody, specially for php [COLOR="Green"]How can i extract hyperlink URL from exel sheet[/COLOR] I dont know what should I have to do, so plese tell me how can I extract hyperlink URL form exel sheet cell..... | |
hi i'm using this, its working great, but if someone has a hyperlink in their status it doesnt pull it across - is there anything someone can think of? Thanks [CODE] $(document).ready(function(){ var username='xxxxxxxx'; // set user name var format='json'; // set format, you really don't have an option on … | |
Hi, I am very new to perl..I want to install a cpan perl module OLE-Storage_Lite-0.19 in a linux machine. The installation instructions does not specify any thing about the @INC path. Will the make file find the proper directory by itself or do we have to explicitely mention it? INSTALLATION … | |
Hi I am trying to parse a file in perl and decode a HEX code. Ex: 0x0001 0x0002 0x0003 . . . 0xFFFF I need to convert these hex to binary and make decision based on it. 0x0001 - 0000 0000 0000 0001 0x0003 - 0000 0000 0000 0011 0x0007 … | |
Hello Everyone I am having some trouble in parsing a XML document with a perl script. I have a file like the attached file(I have just taken a part of the original file as it is too big to be posted overhere and is hard to analyze manually). Now, what … | |
Hi, I am very new to Perl Scripting. I used Shell scripting before, but very little knowledge of Perl Scripting. I am given at task at my work: Here is info: I need to write a program that will listen to a port which will connect from Telnet. Also, the … | |
Hi I am trying to write a simplie login perl script all is working apart from the final if statement. if the username and password match the data stored in the txt file $auth returns true which works then a second if checks if £name is != to "admin" if … |
The End.