2,452 Topics

Member Avatar for
Member Avatar for Roger101

Hi, I am new to perl and have been getting decently good at it. Now i am getting into doing plots with perl. I read some articles/examples on how to create plots using perl It mentions using GD::Graph Module However when i try to plot I get Can't locate GD/Graph/bars.pm …

0
71
Member Avatar for ajay_p5

Dear All I have two files having values like this: File1: 10.1103/PhysRevA.10.2325 1 10.1103/PhysRevLett.32.584 2 10.1103/PhysRevB.13.4845 3 File 2: having comma separated values like this: 10.1103/PhysRevA.10.2325,10.1103/PhysRevLett.32.584 10.1103/PhysRevB.13.4845,10.1103/PhysRevLett.32.584 I want the result two be like this: 1 2 3 2 I am using this code but have not be able to …

Member Avatar for k_manimuthu
0
289
Member Avatar for mitchems

I thought it might be useful to show the special local matching variables that perl uses. Here they are: $1..$9 Contains the subpattern from the corresponding set of parentheses in the last pattern matched like \1..\9 $& Contains the string matched by the last pattern match $` The string preceding …

Member Avatar for d5e5
1
169
Member Avatar for Roger101

Hi, I know how to stor multiple values in has table with single key.Basically HOH But i am not able to do the same when the hash has multiple keys I am trying something like this and when i try to print it gives garbage value for the has keys.. …

Member Avatar for Roger101
0
202
Member Avatar for Newbi1984

Hi there, I'm very new to perl so I hope that you can help me. I have a list of duplicated entries in one file and what I want to do is to search another file for those entries that appear in the first file and then rename each duplicate …

Member Avatar for Newbi1984
0
99
Member Avatar for bjeffries

I have a jquery slider that is not cross browser compatible. It works in all browsers except FireFox. From reading other forums it says that FireFox needs to read document.getElementByID to properly read the javascritp. Does anyone know a way I can rewrite this code to still make the slider …

Member Avatar for Taywin
0
89
Member Avatar for mono_jit23

I have a aspx page where am showing a pdf document using iframe. and beside it am dynamically creating linnks of last 5 uploaded pdf files. Now I want to change the pdf showing through iframe to change on respective hyperlink click. I have shown the pdf and the links …

0
49
Member Avatar for leo002000

Hi all, Basically I am attempting to determine whether the first 2 columns (tab delimited file) from file1.txt match the first 2 columns of file2.txt. If they do I want to output the entire row of file1.txt to outputfile.txt... I can do this using vbs but due to the amount …

Member Avatar for mitchems
0
239
Member Avatar for skamranj

Hi, I am having some problem using nested if else in C# project. I have no idea why it is always executing the Save() function. I don't want to execute the save() function if the (dr.Read()) is true. Here is the code: [code=c] protected void BtnSave_Click1(object sender, EventArgs e) { …

Member Avatar for skamranj
0
137
Member Avatar for ghosh22

hii guys..Got one small question..really got confused with perl conditionals and loop. Would you please elaborate where to use: if..elsif while for foreach unless do in a program? Which one is best for which purpose? Many thanks in advance..

Member Avatar for DavidRogers
-1
247
Member Avatar for ghosh22

Hii everybody!! I am a new user of Perl. I have a small problem here: I have got a tab delimited text file containing a list of chemicals and their properties. Now I would like to create a new column where the program should first scan the whole file and …

Member Avatar for ghosh22
0
116
Member Avatar for threat

i have a .php webpage with the following basic structure [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>index</title> <style type="text/css"> .style1 { background-color: #4BACC6; } .style2 { background-color: #005AE7; } .style3 { text-align: center; color: #FFFFFF; font-family: Arial; } .style5 { …

Member Avatar for threat
0
187
Member Avatar for mahaveer aski

i am using win-7....i got problem with ma desktop icons....its showing unknown program icon for all other programs....what should i do now?????

Member Avatar for mahaveer aski
0
119
Member Avatar for ghosh22

Hii I am a learner of Perl and I am asking a silly question now, I think!! I have a text file containing: ABCDEFGHIJKLmnOPQRSTUVWxYZ Now I would like to translate those m n and x written in small letters into MN and X. How could I do that? I have …

Member Avatar for mitchems
0
87
Member Avatar for bulgin

I have the following perl script which works nicely. It takes a list of URLs from a file, looks up each one, and returns the meta-keywords for that domain. Problem is, sometimes it hangs because it goes to a site which does not respond. I'm wondering if there is a …

Member Avatar for mitchems
0
119
Member Avatar for amithlaxman

Hi, I am a newbie to a perl. I have a problem in getting old and new contents of file. The file is like this: [code] StartTimeStamp,EndTimeStamp,counter1,counter2 Aug15 2010 22:45:43,Aug15 2010 23:00:00,6,0 Aug15 2010 23:00:00,Aug15 2010 23:07:43,3,0 [/code] The output should be: [code] Aug15 2010 23:00:00,Aug15 2010 23:07:43,3,0 [/code] After …

Member Avatar for d5e5
0
138
Member Avatar for Alex Sterling

Hi, I need some help with something. So, I was checking my things on the Internet like I always do, so all my Hyperlinks were purple, but the thing is when I went to check another thing of mine, the link was blue. It was impossible for that to happen …

Member Avatar for JRM
0
164
Member Avatar for anushri

i create a java prog for simple banking purpose.. but its not working properly... when we create account through 2nd option,it work as it coded but if go through 1st option it doesnot access created object but create new one....and unable to perform deposit and withdraw function in created account. …

Member Avatar for nickguletskii
0
168
Member Avatar for howster

Hi, I need to replace "Link Text" with the value in the variable (myNewString). myNewString is just text e.g hello code document.write(myNewString); <a href="welcome.html">Link text</a> i need some thing like the below or even a php version of it <a href="welcome.html">(myNewString)</a> --this syntax is incorrect it seems THANKS!!!!!!!!

Member Avatar for Chokladkakan
0
78
Member Avatar for tat2dlady

I have a file, which I have read, and need to print a parse tree for it. What I am doing is a syntax checker only for open and close parentheses (). If the item read is a open parentheses, I put it on a stack. If it is a …

Member Avatar for mitchems
0
268
Member Avatar for Akase

Hi I'm new to Perl language and I have this assignment which is killing me, CAN SOMEONE HELP ME PLEASE. Below is the question: You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows: 1) When run, …

Member Avatar for penfold58
0
455
Member Avatar for Grep

Hi guys, I have a several dozen .ini files from which I need to extract specific lines. The lines I'm pulling are repeated all throughout the code so I can't count on specific strings to pull these lines. My dilemma is that I want lines: 3, 4, 6, 47, 50, …

Member Avatar for Grep
0
156
Member Avatar for LloydFarrell

hi all, Im trying to add a "title" to a switch case statement below, but for some reason im unable to complete, what I thought was a simple task. Hope someone can help and explaine the reasons why cheers, Lloyd [code] switch($ad) { case "add1.gif"; header("Location: http://www.google.co.uk"); break; case "add2.gif"; …

Member Avatar for syamsasi
0
744
Member Avatar for backendcode

hello friends , I want to learn perl or python. which one is powerfull and where to start

Member Avatar for jon.kiparsky
0
85
Member Avatar for JimBoCol

Hi everyone! I am very new to Perl, and have a problem/question. I downloaded a very simple search script, and configured it for my Website. I was able to customize the output page to match the color, and theme of my site. I was also able to get it to …

Member Avatar for d5e5
0
229
Member Avatar for joker400

how to make perl code executed automatically when new file comes out ??? i am done with most of the script, the script is converting files from one format to another , so i need the script to run when new files comes out ...

Member Avatar for Claude2005
0
154
Member Avatar for gurupn12481

Hi, Can anyone please help me on the below issue? I have a input log file that will be growing. I need to read this input file and print the last record whenever certain pattern matches (pls remember that input file is dynamic - other files will be writing to …

Member Avatar for mitchems
0
93
Member Avatar for PhoenixInsilico

[CODE] my %distAvail; foreach (map(split(/\D+/,$_),<STDIN>)) { $distAvail{$_ }++; };[/CODE] What does [COLOR="#ff0000"]$distAvail{$_ }++;[/COLOR] mean here? The input is set of distances separated by whitespace (or any non-digit character). The book says %distAvail keys are distances and whose values give the number of copies of the key. But I don't understand …

Member Avatar for PhoenixInsilico
0
257
Member Avatar for Perlhelp

Hi All, I have a simple perl script which subtracts two variables holding decimal numbers and the results is not as expected. $a = 417747646.853143 $b = 417747646.853142 $c = $a-$b expected result = $0.000001 actual result = -9.5367431640625e-07 any idea on why I am getting wrong results?

Member Avatar for jon.kiparsky
0
73
Member Avatar for mguttman

I am trying to implement an application in which a Perl script uses Win32::OLE to populate a spreadsheet from a database and present it to the user. The user is then free to modify the spreadsheet [I]manually[/I]. The modified data is then required to update the database. We would prefer …

Member Avatar for mguttman
0
331

The End.