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
74
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
319
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
174
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
206
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
102
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
92
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
52
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
242
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
139
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
278
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
119
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
191
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
123
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
90
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
122
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
141
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
170
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
171
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
80
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
271
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
483
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
164
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
747
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
88
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
231
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
156
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
94
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
267
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
75
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
362
Member Avatar for anraevlus18

Hi, My script has 3 options which recieve integers. If any of those options are having a value which is less than zero i want to make them to 100. eg: if opt2 = 32 and opt3 = 24 i want to make them to 100. <code=perl> our $opt1,$opt2,$opt3; our …

Member Avatar for d5e5
0
118
Member Avatar for Alpana Singh

How is build release engineering different from doing scripting task...or are these same

0
37
Member Avatar for foco

I can get variables from an html page into my perl cgi script just fine, but I want to process these variables (also works), and pass them to another cgi script. I'm not sure how though. I've tried to set up a new <form> inside of my perl script to …

Member Avatar for PaulieWauly
0
184
Member Avatar for newperlniu

Hi, all, I am a Perl newbie. I need to read multiple files in a loop and read each file into an array. I wrote the following code, but it doesn't work. Basically my question is how to assign a different array in the loop? Can anybody help? Thanks a …

Member Avatar for balamurugan_g
0
3K
Member Avatar for Perlhelp

Hi All, I have two files to compare. Each has 10 columns with first 4 columns being key index together. The rest of the columns have monetary values. I want to read one file into hash; check for the key value availability in file 2; then compare the values in …

Member Avatar for Perlhelp
0
396
Member Avatar for Claude2005

Hi there, I'm wondering if there's a way to differentiate a space and a tab in Perl. I have this data format: [CODE]02 Aug 10 14:22:00 12345 A Quick Brown Fox Jumps John Peter Doe 02 Aug 10 14:25:00 12345 Over The Lazy Dog John Peter Doe 13 Aug 10 …

Member Avatar for Claude2005
0
94
Member Avatar for reza.adinata

Hi all, I am trying to make an array of folders and want to basically take all files inside the folder. However, I got an error saying "missing a $ loop variable". I have add a $, and worked around with this codes, but still did not work .. Is …

Member Avatar for reza.adinata
0
117
Member Avatar for der_lucey

When I turned on my laptop, the usual blue Dell logo screen (with press F2 to enter setup) came up followed by a blank screen where the cursor is at the top left flashing, the hard disk light is permanently on and it stays like that indefinitely. When I press …

Member Avatar for Fyxx
0
863
Member Avatar for qiwenfarmer

hi, I am a newbie. I have a simple perl script that write to a text file I created a mxml page using flex, anyone know how can I execute the perl script from mxml page? Also, I wish the perl script can retrieve the user input from the text …

0
59
Member Avatar for brenzor

Hi I am busy with a google map, and I have the 'to here' 'from here' directions on my info window, but i have a problem. When i type in an address for the directions, it links me to the google maps site, but i get a message in the …

Member Avatar for virtuemart
0
238
Member Avatar for anraevlus18

Hi i am a newbie to perl.. I have a script which copies files from local machine to a remote machine. I am using Getopt::Long to get the command line arguments. "-d" : for directories "-f" : for files doubt #1 GetOptions ('d:s' => \@dir, 'f:s' => \@fil); If i …

Member Avatar for d5e5
0
100
Member Avatar for KAY111

Guys, Please explain what is happening here? [code=perl] #!/usr/bin/perl $line="abcd"; @arr=split("",$line); print $arr[$0]; $x="x"; if ($arr[0]==$x) { print "Hello"; } [/code] The output is: aHello Am I dreaming this?

Member Avatar for d5e5
0
108
Member Avatar for hif

hello. i need to know how i can write an onactivate function for the hyperlink that is clicked. each hyperlink identifies a different directory and i assigned each of them with an id equal to their directory. the onactivate function (actv)is meant to receive this id in a string and …

0
72
Member Avatar for karthikeyanr

#!/usr/bin/perl # Example of a daytime TCP server using perl functions use strict; use Socket qw(INADDR_ANY AF_INET SOMAXCONN SOCK_STREAM sockaddr_in); # Get protocol number my $proto = getprotobyname(’tcp’); # Create generic socket socket(SOCK, AF_INET, SOCK_STREAM, $proto) or die "socket: $!"; # Bind to the daytime port on any interface my …

0
38
Member Avatar for Spakes

Hi , How do I write a code that will print the first 10 even numbers in PERL Thank you

Member Avatar for jon.kiparsky
0
2K
Member Avatar for vipkrsna

Dear Team, I have a list of snmp-enabled devices saved in list.txt. I need to poll these devices for 5 different OIDs and output the result in csv format. Could you please help me? Vipin Krishnan

Member Avatar for mitchems
0
31
Member Avatar for cyberjorge

Hi, This might be too much to ask, but can someone help make sure this php file code always saves current date to my "lastupdate" field of "ReservationDetailsTmp'" table? Would be great to receive response asap. Thanks a lot in advance! :) [CODE]<?php // no direct access defined( '_JEXEC' ) …

Member Avatar for almostbob
0
258
Member Avatar for zageela

Hi All, I am adding a calendar coded in cgi to my page.As i can use a JS calendar also but it have to do it with cgi only. my present calendar prints current month on the page.Now here the problem comes. I want each & every date to be …

Member Avatar for mitchems
0
799
Member Avatar for Toulinwoek

I have a combo box on a form (MainForm) that's bound to a column in a database table. I want this combo box to get it's list of selections from a second table (LocationsTable). Items are added or deleted from LocationsTable via a second form (frmLocations). If I have MainForm …

Member Avatar for Toulinwoek
0
85
Member Avatar for jeffreyjs

I am currently trying to store location data into a database and when i display it on a website, the location data is hyperlinked and when i click on it, it will act as a search query to display the location on Google Maps in a iframe. Does anyone know …

Member Avatar for jeffreyjs
0
241

The End.