1,633 Topics

Member Avatar for
Member Avatar for Anthony Cameron

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 …

Member Avatar for Anthony Cameron
-1
223
Member Avatar for techieinvents

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 …

Member Avatar for mitchems
0
67
Member Avatar for Anthony Cameron

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

Member Avatar for techieinvents
-3
170
Member Avatar for koduruabhinav

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 …

Member Avatar for koduruabhinav
0
157
Member Avatar for crazy_perl

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 …

Member Avatar for sysadm1n
0
84
Member Avatar for sysadm1n

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 …

0
51
Member Avatar for bio-grad

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 …

Member Avatar for bio-grad
0
379
Member Avatar for choosenalpha

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 …

Member Avatar for choosenalpha
0
400
Member Avatar for choosenalpha

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 …

Member Avatar for d5e5
0
202
Member Avatar for kahaj

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 …

Member Avatar for d5e5
0
333
Member Avatar for Honkey_Magoo

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 …

0
54
Member Avatar for bio-grad

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 …

Member Avatar for bio-grad
0
3K
Member Avatar for fischbone

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 …

Member Avatar for fischbone
0
164
Member Avatar for bio-grad

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 …

Member Avatar for d5e5
0
137
Member Avatar for Anthony Cameron

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 = …

Member Avatar for Anthony Cameron
0
3K
Member Avatar for nonshatter

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 …

Member Avatar for k_manimuthu
0
196
Member Avatar for Anthony Cameron

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 …

Member Avatar for Anthony Cameron
0
252
Member Avatar for gwong

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) …

Member Avatar for joemarG11
0
445
Member Avatar for gsarin

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 …

0
59
Member Avatar for crazy_perl

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 …

Member Avatar for crazy_perl
0
167
Member Avatar for koduruabhinav

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 …

Member Avatar for koduruabhinav
0
140
Member Avatar for mitchems

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 …

2
143
Member Avatar for BSauer

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 …

Member Avatar for d5e5
0
1K
Member Avatar for ajguitarmaniac

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 …

Member Avatar for ajguitarmaniac
0
202
Member Avatar for Inês

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 …

Member Avatar for richieking
0
100
Member Avatar for hi5.ankit

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 …

Member Avatar for richieking
0
155
Member Avatar for anraevlus18

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 …

Member Avatar for richieking
0
162
Member Avatar for Roger101

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 …

Member Avatar for d5e5
0
1K
Member Avatar for ajay_p5

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 …

Member Avatar for richieking
0
310
Member Avatar for john22

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 …

Member Avatar for richieking
0
456

The End.