2,452 Topics
![]() | |
Im trying to call another perl file from within a perl program. I have been told it's system("file.pl"); but this doesnt seem to work | |
Hi all, I'm sure this is a simple problem, but hopefully someone will be able to help. I'm trying to connect to mysql through perl, however when I use the command [CODE]use Mysql;[/CODE] it is giving me an error. I am assuming it is probably something to do with the … | |
I get some error while printing in text like this ¦Å instead of ρ etc..while parsing HTML file | |
Hi all, I am trying to make the script to find 3 amino acid at the position form the diffirent sequence into the same file data. in put 1: [CODE] Name posi 14067_contig01 18 14067_contig05 8 14067_contig03 26 ....................... [/CODE] in put 2: [CODE]>gi|354512101|gb|AGQQ01000001.1| Corynebacterium glutamicum ATCC 14067 Contig01, whole … | |
Hi, I have 2 large log files in .gz format file1.gz contains abcde 12345 23456 . . . . . . . . 09123 file2.gz contains abcde,1,2,3,4,5,6,7 09123,3,4,5,6,7,7,8 23456,9,6,5,4,3,2,1 .... ... ... ... I am basically looking for a script to open the file1 , read line by line and … | |
I am trying to do something like the following [CODE] my @type1_cols = qw(col1 col2 col3); my ($col1, $col2, $col3) = split (/:/,$string); ... foreach my $col (@type1_cols){ $hash->{$col} = ${$col}; # <---- this line is the issue. how do i do ${$col} } [/CODE] any help is much appreciated. | |
Hi, Some jobs got scheduled.let us take an example of 5 jobs. first 4 jobs got scheduled in one server(assume it as A).last jobs got scheduled in another server(assume it as B).so the requirement here is once the 4 jobs got completed in server A, then we need to connect … | |
. in just one cell of a table? I can do a global change on the page by redefining html 'a' element colors in a .css file andlinking it, but that changes the link colors everywhere, including those in the standard asp:Menu components. The contents of one cell on my … | |
Hi, I want to print the word that start with h(not case sensitive). i tried with below code but its printing only one charater 'H'. i dont understand the metacharaters and regular expressions much. i understood that $1 will have the first match and $2 will have second match and … | |
Hi everyone, Running: Windows 7 Professional (64 bit), MS Office 2010, IE 9.08.... since I bought the laptop in September and have made no software modifications at all. Having a really annoying problem. Have searched web and here. Whilst sismilar issues are out there, I can't find one the same … | |
Hi all, I am trying to make script to find the max value at the number that was decided by user. The data has two colum [fw] and [rw] and I hope I can find the max values of each colum. in put : [CODE] posi (not have in data) … | |
Hello, I have done my best in trying to find a way to be able to do the following... I have a text file (data.txt) that I would like to add some info at the beginning of the file (prepend I believe, not append). From what I have gathered, "append" … | |
[CODE=php] <?php include('variables/variables.php'); ?> <div id="header"> <?php include ('includes/db-zelf.php'); // define your database connection credentials mysql_connect( $db_host, $db_user, $db_password ) or die(mysql_error()); mysql_select_db( $db_database ) or die(mysql_error()); /* KUBAGES */ $Luchtvr = mysql_query("SELECT * FROM Luchtvrachtpalletten WHERE ID='1'") or die(mysql_error()); while($Luchtvra = mysql_fetch_array( $Luchtvr )) { $kuubid = $Luchtvra['ID']; $kuubvol … | |
This is a website I designed a few years ago. The CONTACT and EMAIL SUBSCRIBE forms used to work, and they are broken. When I click on the Submit button, I get a server error saying "The server encountered an internal error or misconfiguration and was unable to complete your … | |
Hi, I have just started learning PERL. below is the code i have written , i am expecting the same order that of array when i print the contents. but the output was [ICODE] 29 25 Michael 29 Walter 34 Donny 25 Sobzchak 30 [/ICODE] can some body please clarify … | |
hi team...I need help for connection sybase server emergency... i will start perl programming for our company software ourselves…I need dbi driver installation guide,installation setup file and etc. i m using dzsoft perl editor (5.8.7.3),and i have apache server 2.0.64 (win) i try to connect sybase server but i couldnt … | |
Hey! I have a problem with my Amilo Sa 3650 keyboard. A little tea (no sugar!) was spilt on it and I quickly mopped it up as it wasn't that much liquid. Shortly after, the keyboard keys went crazy (some keys acted like they were being pressed constantly), I waited … | |
Hi all, I am trying to separe my data DNA because it has a lot of name. It has about 43 litte file in one data. I made the small script to solve one name of data but I did not succes. The result was not enough. My script is … | |
How can I get an image to have it's own hyperlink that is inside of a clickable div? [CODE]<div id="clickable" onclick="window.open('http://www.daniweb.com');return false;"> <p>I love clickable images!</p> <a href="http://www.google.com"><img src="someimage.png" /></a> <p>too bad they don't click in a clickable div</p> </div>[/CODE] If I try the above then the DIV is always … | |
when I'm running the code everything works fine, it doesnt allow you enter the same name twice but if I shut it down and then start the code again it will let me add the same name again without throwing the error message. does anyone know I could change my … | |
Hi, a program requires one to enter a given number of strings, and for each string, the program has to output the number of permutations possible. We all know that if a string S of length l has a type of one letter, b type of another, c type of … | |
I have been trying unsuccessfully to calculate the "bearing" between 2 Universal Transverse Mercator points. Lets call them head and tail. head has points $XH = 756979.0 $YH = 7951269.2 (x,y) tail has point $XT = 765484.9 $YT = 7951229.6 (x,y) what I have been trying is as follows: (variables … | |
Hi all , I have some data with a lot of colums but I just want to put out some colums in the diffirent file. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/377421[/url]. I used that to solve my problem but it is not seccesfull. I can put out … | |
I am trying to parse an html file. But unable to remove spaces using \s (matching character for whitespace) [CODE]use strict; use warnings; open(FILE,"<paragraph.txt")|| die "Can't open para.txt"; my @file = <FILE>; my $all = join("",@file); $all =~ s/\n/ /g; $all =~ s/\./\. /g; $all =~ s/\s\s*/ /g; open (FIL,">paraone.txt")||die … | |
Hi I have two files. One file contains all my interested uniprot id and second file contains uniprot ID with their corresponding family. My aim or I am trying to create new file. So from file1, I want compare all Id with file2's Id. If equal then they should print … | |
Hi ALL, Can any one suggest me on below requirements with less memory and cpu time. I have used below code and seems it is not efficient for huge files. fgrep -v -f file2 file1 >file3 This will output file3 containing all lines from file1 that are not in file2. … | |
How can i find the mac address of all computers and which loop i used for [CODE][B]#!/usr/bin/perl $file ="/etc/sysconfig/network-scripts/ifcfg-eth0"; open (MYFILE, "$file"); $file1 = <MYFILE>; while ($file1 ne "") { chomp ($file1); $file1 = <MYFILE>; for ($values = 0; $values < 5; $values++) { if ($file1 =~ /HWADDR/){ @values = … | |
Hello, when some submits this form its get send to my email. If the picture or attachment has a space in it ( ex: tom file.docx) the hyperlink gets messed up. I attach a picture of it below. Thank you so much! [CODE=php]<?php if(isset($_POST['email'])) { $email_to = "talent@itarep.com"; function died($error) … | |
Hi all, I am trying to make the script to sort the data at the max to min at the decided position. [CODE] in put : 10 0 20 0 24 0 26 0 34 0 39 0 49 0 55 0 56 0 65 0 65 0[/CODE] [CODE]I hope … | |
I'm using the printf function to display some textual information. It is possible that the string may contain different symbols such as $#%^&* somewhere within the text. I know that to handle the % that I need to use a %% to make the string evaluate correctly. for example: [CODE] … | |
I am trying do it the script to put out data after compare two file. I make the script to do that but the result was not enough. in put 1: [CODE]Num posi base 1 14183 ATC 2 26657 GGG 3 49403 GCA 4 57244 GCA 5 58068 GCT 6 … | |
Hi all, I am try to make the script to tranlate DNA to protein. I found the script in internet, and I tried to mix that script to make the result in the colums but I was not seccessful. Would you please show me solve this problems. For Ex: [CODE]I … | |
Please look into the code and help me ... [CODE] dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = 1 dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" dbInsert.Parameters.Item("mr_date").Value = DateTimePicker1.Value dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "item_code" dbInsert.Parameters.Item("item_code").Value = txtItemcode.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "qty" dbInsert.Parameters.Item("qty").Value = txtQty.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_status" dbInsert.Parameters.Item("mr_status").Value = "N" dbInsert.CommandText = "insert into mr_head values ('MBBK7490','2',DateTimePicker1.VALUE,txt_itemcode.text,txtQty.text,'N',NULL);" dbInsert.CommandType = CommandType.Text … | |
Hi, I am facing issue while connecting to sqlplus in perl script. Following is my perl script code. It didn't execute properly & it take too much time to run very short sql. #!/usr/bin/perl $sql_return = `sqlplus -s user/password << SQL_END set linesize 80 set pagesize 10 set heading off … | |
Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but … | |
Hello, Could you please help me in following scenario in Perl scripting? I want to compare two text files & change the charter at the position. Output of this comparision in third file with flags C-CHANGE, N-SAME at the end of line. [CODE]IN PUT1: Posi 3 ATG 2 ACT 1 … | |
Hi everybody, I am the admin of a small website running IIS 6 and i just found out that it may be vulnerable.So i used this script to see if it takes my website down. [CODE]# IIS 6.0 ASP DoS PoC # usage: perl IISdos.pl <host> <asp page> use IO::Socket; … | |
I'm kind of a newb to javascript, so bear with me. I'm working on a site for a college javascript class, but I want to do a little bit more with my class site. I have a very simple slideshow set up( as a pop-up), but I want the images … | |
Hello, Can someone tell me the equivalent perl script/command for following unix command: sort -t"|" -k1,1 -T '/temp' input.txt > output.txt Here, I want mention different physical directory for temprary sort file storage. like - T in unix shell command. In other word, How to mention different workspace directory in … | |
Hi all. Can i open the web page through perl? I get URL as a result in my perl code. but, ofcourse, it is displayed in command prompt as i'm using windows. I need that web page to be displayed directly. can i do it? i hope somebody can help … | |
I am passing a variable that needs to be evaluated with a print command. An example of my variable may look like this "variabl%e" I understand that the best way to get around the percent problem would be to simply add another percent sign to the variable and then it … | |
What is the difference between [ICODE]qq{}[/ICODE] and [ICODE]q{}[/ICODE]? I am learning some basic perl for class, and I noticed that [ICODE]qq{Element contents: $_}[/ICODE][ICODE]q{Element contents: $_}[/ICODE] produce different results in a loop... I thought "q{}" was like quoted or something.. What is it really? And what is qq{}? | |
Ok, so I have exhausted all possible options with this. I cannot figure out why this script fails to compile when trying to divide. The division on line 203 seems to break the whole script. The errors that are displayed are for lines that are 50 some lines below the … | |
Hi I have a search function where the user selects from drop down boxes. There are 4 fields to choose from and any of the 15 combinations can be used to search with. I am using Else If and the very first IF works, but when it is false it … | |
Hi everyone, I am trying to idetify the position between start_posi and end_posi and I want to have all information of this position. For Example: [CODE]input 1 : num start end 1 1234 1238 [/CODE] [CODE]input 2 : num position information 1 1236 ACGT [/CODE] [CODE]out put 1234 1236 1238 … | |
Hi, I was wondering if Perl has a command line interpreter like Python's IDLE, where you can test things readily without having to save them as a program and run them. If not, why? Why is it that Python or Matlab has command line interpreters where you can type 4+3 … | |
I would like to write Perl script to read just first line of a file & calculate the length of second field which is comma separator file. For example - 1001,abcd,9999 1002,xyz,0001 expecting result - 4 (character length of second field from just first line i.e. abcd) Can somebody help … | |
I have tried this code but its not working....what I want is that when I click on "Available" hyperlink a popup form should be opened. I have copied the code below <? if($GotPro['available']==1) { echo ($GotPro['PropertyName'].":". '<a href="#" ><script type="text/javascript">window.open(<a href="checkavailability.php" ></a>)</script>Available</a>'); } else if($GotPro['available']==0) { echo ($GotPro['PropertyName'].":". '<a href="#" … | |
Basically I am reformatting a list that looks like this ko10101 K01392 K09134 ko34231 K05789 ko13452 K04665 K07881 into a csv file that looks like this: ko10101\tK01392 ko10101\tK01392 ko10101\tK09134 ko34231\tK05789 ko13452\tK04665 ko13452\tK07881 [code]while (<OUT>) { my $line = $_; chomp; if ($line =~ /^$/) { next; } elsif ($line =~ … | |
Hi, I need some help regarding on my laptop. Samsung R530 dual core T4400 2.20GHZ it is pre installed windows7 home basic...when i formatted it and install fresh window7 ultimate.After the installation finished when it loads to the desktop there is an error saying that hardisk problem...so i tried reformat … |
The End.