473,609 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Forum

Perl programming language - ask questions about perl programming, syntax, variables, scoping, constructs, operators and functions, files, I/O, regular expressions, regex, subroutines, OO (object oriented), perl modules, CGI and more.
11
10,910
thread by: thanawala27 | last post Oct 20 '10 by: George Kaffejis
Hi guys, I had a problem while writing into an Excel file. What i want to do is: i want to write the contents of 2 variables in one cell of the Excel field. to write the contents of one variable, i use $worksheet->write_string($row, $col, $value1, $format); this works fine.
0
1,201
thread by: Anja Friedrich | last post Oct 20 '10 by: Anja Friedrich
Hi all, I was writing a code to find out the exact positions of different variants of a motif in a sequence. Therefore I have two arrays. One with the sequence and one with the different variants of the motif (e.g. small_motif_a CGTCGCACAGC). The problem is my output is completely senseless as it gives me positions that does not even lay in my...
4
1,888
thread by: bluewavessurf | last post Oct 18 '10 by: RonB
I want to implement a Perl Program that takes a directory path, ex (d:\programs) as an INPUT and this directory could have multiple files for this program let’s say 5 files (doc1, doc2, doc3, doc4, and doc5). This program should print the average time to open and read all these five files into OUTPUT. How can I read the files in blocks of 64 KB?
10
3,693
dlite922
thread by: dlite922 | last post Oct 16 '10 by: numberwhun
A script stopped working when I moved it from Win 2003 server to Win 2008. After some troubleshooting it seems that it was not grabbing the command line parameters. So I did a print $ARGV and exit at the beginning of the file and I get this: Use of uninitialized value $ARGV at .... line X I'm using perl from a folder, not installed...
1
1,717
thread by: spyka | last post Oct 13 '10 by: numberwhun
I have a page named _Main.cgi_ where in I have a horizontal menu bar with UserList logs and so on like the Menu above Questions Tags Users etc. Whenever I click the Userlist I get navigated to another page where I have a grid. In this page also I want that Menu bar which was in _Main.cgi_, and so on. It should...
1
1,671
thread by: Manikank | last post Oct 13 '10 by: numberwhun
I have a multiple lines file that I read. It reads all lines except for the last line if (defined($$bb = <STDIN>)) { print LOG" in if condition\r\n"; $readCount += length($$bb); if ($readingFile) { $fileCount += length($$bb); }
3
1,783
thread by: vicky bioinfo | last post Oct 13 '10 by: numberwhun
Hi, I want extract particular strings from large file(file size 600 Mb). I gave two kind of conditions for identify the position. first string comparison is working, but second one is not working. Please helpm in this. Thanks in advance. open(NGS,"<$ngs") || die "can't open file"; open(RESULT,">$output") || die "can't open file"; ...
1
2,361
thread by: ronnie gordon | last post Oct 11 '10 by: RonB
Hi... I have 4 pics ( jpeg) in an array, but i'm having trouble displaying them all. It never displays all pics, tends to display them in random order, and sometimes pics are repeated 2 or 3 times. Here's the html and the perl code: html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html> <form...
2
3,350
thread by: Ravikumar S | last post Oct 11 '10 by: Ravikumar S
Hi, I am new to Perl trying to setup an environment for learning Perl. Here is what I have done. 1. I have installed Perl 5.12.2 Build 1202 2. I have installed Abyss Web server X1(free version) 3. Followed the instruction to associate Perl with the webserver from this link: http://www.aprelium.com/abyssws/perl.html 4. I am trying to...
1
1,951
thread by: Donnie Seibel | last post Oct 11 '10 by: RonB
I wrote a script to list all lines in a file with Perl. I am having trouble with the looping part of it. My script is supposed to look at the file and as long as the file is larger than the current line it prints a new line. I am getting an error that won't stop on the while line of my code I believe. Here is the code: #!/usr/bin/perl -w...
1
1,570
thread by: koduruabhinav | last post Oct 10 '10 by: numberwhun
Hi, some simple code required.i was trying but i was unable. But i want instances to get printed each time like we are printing comparing instance name. suppose if we take Each X_RAMB18E1 module consists of different instances like i for the first time ...
2
1,672
thread by: AnitaB | last post Oct 8 '10 by: AnitaB
I have to create a perl script, which is calling a .sql script. This .sql script is creating alphabetic listing of .inc files from A-Z. All the .inc files will be having a suffix with lowercase of the alphabet name with it e.g. testa.inc, testb.inc etc. I then need to move these .inc files to another directory. I dont know much perl , so any...
1
2,582
thread by: koduruabhinav | last post Oct 8 '10 by: numberwhun
$string1 =~ /($modul\s#\(.*\);)/gs; $instancesfrom1 =~ /$modul #\((*)\);/g; m/^(\Q$lkup(\E.+?\))/ Hi any one can you please explain me the above regular expressions i want a regular expression matching the requirement
1
2,173
thread by: Jaap van der Heijden | last post Oct 8 '10 by: numberwhun
Hi all, I've made the script below to calculate the coverage per position of small pieces of strings. It works fine but when I tried to speed thing up for large files using forkmanager the script takes an awful lot of time when I set 2 parallel forks. Setting it to 0 works fine. Does anybody have an idea what is going wrong? Kind Regards...
1
2,024
thread by: JosXavier | last post Oct 8 '10 by: numberwhun
Hi, Anybody help for me the below mentioned error occure for my first cgi program. file name: first.cgi error message. Server error! The server encountered an internal error and was unable to complete your request. Error message: couldn't create child process: 720003: first.cgi
1
1,901
thread by: crult | last post Oct 8 '10 by: numberwhun
Hello, I have a large number of xml files in a folder. I want to read and extract the content of each xml file to a new.txt. I'm only interested in the content having the tag <Texte>, and i want to create a .txt file (a texte file for each of my xml's). I use the perl modules xml twig and xml simple. There's the code i have until now: my...
1
1,213
thread by: Jack Wu | last post Oct 8 '10 by: numberwhun
i'm reading Network Programming with Perl there is an example in chapter5:concurrent clients. #!/usr/bin/perl use strict; use IO::Socket qw(:DEFAULT :crlf); my $host=shift or die"Usage:gabl.pl host \n"; my $port=shift || 'tcp';
1
1,583
thread by: spyka | last post Oct 8 '10 by: numberwhun
I have issue regarding paging using filter expression. Here's the piece of code for filtering: if ( $q->param("Filter") ) { $Id=$q->param('User_Id'); $Name=$q->param('User_Name'); if ($Id ne "" ) { $filterexpression= $filterexpression." UserId like '"...
1
2,132
thread by: Jim Cooper | last post Oct 8 '10 by: RonB
I am a Unix based perl programmer but I need to be able to run perl scripts in Windows XP. I cannot get perl to execute other than at shell windows level. I would like to execute a perl script from a .vbs script in XP
6
24,467
thread by: RaviRajhulk | last post Oct 7 '10 by: aksindia
I need to call a batch file for execution through the perl script.pz help
4
27,860
thread by: thanawala27 | last post Oct 6 '10 by: podango
hi, i wanted to know how to comment multiple lines in a perl program say in this piece of code. for ($i=0; $i<5; $i++) { print "<tr> <td width=10%>
6
5,151
thread by: sneha9 | last post Oct 6 '10 by: Ritwik
Can anyone tell me which ppm repository has Win32::GuiTest package in it, i tried adding "http://ppm4.activestate.com/MSWin32-x86/5.8/822/package.xml" and " http://ppm4.activestate.com/MSWin32-x86/5.8/825", but could not find Win32::GuiTest package in it, pls help me ...
2
4,086
thread by: zeebo17 | last post Sep 29 '10 by: Mr Cass
Hi, When I run my program on a linux machine it opens, renames, and unlinks the files as expected. However, when I run it on Windows it will not rename or unlink the files. Since it is opening and reading the files correctly, it seems that the problem is not in the difference between the path name styles. Here are the relevant parts of...
1
1,720
thread by: Vinarashi | last post Sep 28 '10 by: RonB
Hi, Anyone please help me in solving this issue? How to attach a file using mail command in Linux? I tried with uuencode " " " " | mailx command, but i am getting an error "uuencode command not found". Thanks to everyone.
3
7,401
thread by: vibhakhushi | last post Sep 27 '10 by: vibhakhushi
How to compare two files in perl. I have two files as shown below. First XML File <Data> <indep voltage> +1.20000000000e+01 </indep> <indep current> +5.08474576271e-04

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.