2,977 Topics

Member Avatar for
Member Avatar for rpgwebsolutions
Member Avatar for Dhaval0203

hi i m new to learning perl please anyone tell me how do i start learn it? Which libraries are used in perl...? From where to i can get all these information? Give me brief introduction about perl.......

Member Avatar for rdxblast
0
79
Member Avatar for gpx

IO::Tty is a pre-req for expect.pm IO::Tty install reports that "Configuration looks good!" (See below) but the makefile fails with missing Tty.so Any suggestions? ------------------ # perl Makefile.PL Now let's see what we can find out about your system (logfiles of failing tests are available in the conf/ dir)... Looking …

Member Avatar for rdxblast
0
503
Member Avatar for VDivya

Hi all... I am trying to embed Java into Perl. I am a newbie in Perl and I am facing a lot of problems. I used Inline::Java to embed Java into Perl. The details of the modules are as follows: Pojo.pm contains the Perl module with Java embedded in it. …

Member Avatar for rdxblast
0
116
Member Avatar for divyareddy.533

Hi, I am new to perl,i designed one web form using html for this form i need to attach captchaimages for security,How can i generate captcha images using perl scripts. Please help me in this issue.

Member Avatar for rdxblast
0
83
Member Avatar for divyareddy.533

Hi , I am new to perl language,while i am working with this i got a small problem. I designed a form in html it contains four fields. when the user clicks submit button in this form i redirecte my page to serverside code which is perl. In this i …

Member Avatar for rdxblast
0
86
Member Avatar for divyareddy.533

Hi, I am new to perl scripting language, While i am working with this i got a problem in this.When ever i am trying to redirect to a next page uisng perl script i got the problem it did not redirect to the next page. here i am explaning with …

Member Avatar for rdxblast
0
102
Member Avatar for navarannan

Hi Friends I have a requirement to where my cgi program has to send an email when the "Submit" button is pressed. Here is my cgi program, which has a text field to enter the username and a submit button. [code] #!C:/Perl/bin/Perl.exe use strict; use CGI qw(:standard); use CGI; use …

Member Avatar for rdxblast
0
433
Member Avatar for Vindhyaauri

Hi there!! Just wanted to know how to match the line containing $$$$ from a file. Is this correct : (my $row =~ /\$\$\$\$/) Thanks in advance!!!

Member Avatar for rdxblast
0
67
Member Avatar for perly

Hi, I need help to make a perl program work. The program accepts an input (reaction) and then search for the input in a file and then displays the reaction on the same line. Input file - file.txt (A large file with no header and in the following format): A1_HTTT24 …

Member Avatar for perly
0
127
Member Avatar for srsackman

Hi again. I have a gridview control on my page, and some search criteria textboxes, etc. When my user clicks 'Search', I want to show or hide an unrelated hyperlink based on the count returned by the grid. I'm having trouble figuring out when to do this. I started with …

Member Avatar for srsackman
0
89
Member Avatar for ukndoit

We are an American company, doing business world wide, we have a lot of members coming on board in Russia, Estonia, Latvia, Africa and lots of other places. They are all asking for us to translate the web pages. So I programmed in a language translator, where we can give …

Member Avatar for ukndoit
0
171
Member Avatar for john_prince

Hi, I've this script that takes care of picking phone number in standard format - xxx-xxxx, further i would like it to pick phonenumber even without hypen - xxxxxxx. How can i do that? [CODE] foreach $number (@numbers) { if ($number =~ m/(^\d{3}-\d{4}$)/) { push @results, $number; } } [/CODE] …

Member Avatar for jcubic
0
88
Member Avatar for abdulraqeeb33

Hi, I am very new to perl pgming. I have a weblog which has a standard format as the below example IP | remoteUser | authUser | Date/Time | Request | Status | Bytes For example, 74.6.72.229 - - [27/Jan/2007:00:00:36 -0500] "GET /~jking/ralph.html HTTP/1.0" 404 215 the fields are seperated …

Member Avatar for abdulraqeeb33
0
142
Member Avatar for MDanz

I've got a 101px x 101px div with a background image and words of text. I've attempted to make the whole div a hyperlink but it only made just the text a hyperlink. if you check my website [url]http://www.stackway.com/stack.php[/url] , when you click the word then the correct hyperlink comes …

Member Avatar for drjohn
0
142
Member Avatar for fuyuki

Hi, I'm new to this forum. I have a question regarding outputting to .txt file. [CODE]while($file =<DNAFILE>) { open FILE, ">newseq.txt"; my $dna = fasta($file); my $newseq = mutationdna($dna,$years); print FILE $newseq; #this does not work. how do I fix it? print $newseq; # this work }[/CODE] The outputting to …

Member Avatar for fuyuki
0
125
Member Avatar for gmxwilliam

Hey guys, I'm a newbie here and also to Perl.I have a similar but difficult question than a previous question here. [url]http://www.daniweb.com/forums/thread245502.html#[/url] I have a output file containing atoms like this: #F A 1 1 1 3 3 2 #C number type mass x y z vx vy vz Epot …

Member Avatar for d5e5
0
133
Member Avatar for abdolah

hello i used this while(my $file=glob("$dir/*")){ but as the directory has whitespace in path-name it cause error ,how i can solve this? thnx.

Member Avatar for d5e5
0
97
Member Avatar for lllllIllIlllI

Well, i am doing this because i think i should introduce finally. So i am Paul Thompson 16 years old I live in Newcastle Australia Probably the coolest thing that has happened in my life is that i lived on a boat for 3 years sailing up and down the …

Member Avatar for BestJewSinceJC
0
293
Member Avatar for aaegcm

Hi, I have an input like this: gene1 pos1 description1 gene2 pos2 description2a gene2 pos2 description2b gene2 pos2 description2c gene3 pos3 description3 gene4 pos4 description4a gene4 pos4 description4b and I would like an output like this: gene1 pos1 description1 gene2 pos2 description2a, description2b, description2c gene3 pos3 description3 gene4 pos4 description4a, …

Member Avatar for aaegcm
0
100
Member Avatar for spydee

hello i m new user and i want a theme for my project named project managment system i f u can help me i m thankful to u

-2
48
Member Avatar for wiz83

hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] …

Member Avatar for chongopants
0
227
Member Avatar for tlctara

I use a php file in order to collect data from an interactive form on a website. The php code sends the submitted file to a folder on the server, and displays a "Thank you for your submission" message. I would like to add a hyperlink to a payment page, …

Member Avatar for put3
0
536
Member Avatar for nathanward01

Is there an "simple" way to have a Rich-text <textarea> form save to a specific file on my server, replacing or adding to the existing version of that file? The reason I ask is a person I'm designing for doesn't knwo a lick of HTML, nor has any wish to, …

Member Avatar for emhmk1
0
93
Member Avatar for kotkata

[code] //this game is played with a six sided die, on each player's turn he may roll until he gets a 1 from the die, at which point, all points accumulated to that point are wiped, he may hold and add the accumulation to his score at any time. #include<fstream> …

Member Avatar for WaltP
0
284
Member Avatar for incog

Is there a way to import the contents of a text file into a source code file upon compilation? Just like the include()/require() methods in Perl and PHP (see: [url]http://php.net/manual/en/function.include.php[/url]).

Member Avatar for kvprajapati
0
75
Member Avatar for EvilNerd

I made a simple program where a user can pick from the menu. My problem is where do i put this code properly inside the fuction of [B]funcFloat[/B] and [B]funcInteger[/B] [CODE]if (myFloat < 0) // this will output if the user entered a negative value { printf ("You entered a …

Member Avatar for EvilNerd
0
93
Member Avatar for orwell84

okay, so I wrote a program in Perl to find prime numbers and, when learning C, I decided to translate it into C. The thing is that...well...it doesn't work. No matter what I do, I get the same message when I say ./primes.c at the terminal: Segmentation fault. I know …

Member Avatar for orwell84
0
113
Member Avatar for txwooley

I am trying to put a terminal into my tk gui program as a widget. I figured out how to have the output of a command sent to a text widget: [CODE] root = Tkinter.Tk() tfield = Tkinter.Text(root) tfield.pack() for line in os.popen("run_command", 'r'): tfield.insert("end", line) root.mainloop() [/CODE] But how …

Member Avatar for txwooley
0
11K
Member Avatar for MDanz

how to make var newtext2 a hyperlink? the hyperlink is a php variable. I've only included this line of code. [code]var newtext2 = obj( "reply" ).value;[/code]h

Member Avatar for urtrivedi
0
48
Member Avatar for Vandithar

Hi, I have installed WWW-Mechanize-1.60 in Linux platform. Problem is that i am getting this error. [code] Error GETing http://www.example.com:Can't connect to eutils.ncbi.nlm.nih.gov:80 (connect: timeout) [/code] Here is my code. [code] use WWW::Mechanize; $url="http://www.example.com"; $mechanize = WWW::Mechanize->new(autocheck => 1); $mechanize->get($url); $page = $mechanize->content; [/code] How can i solve this error? …

Member Avatar for d5e5
0
252
Member Avatar for Nuuk

I am creating a site for our local carnival club. I have created some buttons (images) for navigating between pages but when I place two of these buttons near each other, clicking on one can activate the other. I've more of less solved the problem by placing the buttons a …

Member Avatar for macneato
0
91
Member Avatar for john_prince

Hi, We're trying to monitor our logs, and would like to be alerted in case of repeated occurrence of a certain field ( ie PY1011 ). We'd like the script to be run every half hour, which will scan the log file, look out for repeated of any user, if …

Member Avatar for d5e5
0
137
Member Avatar for navarannan

Hi Friends I have written a perl script which sends an email on Windows using NetSMTP. [code] #!C:/cygwin/bin/perl #print "Hello world"; use Net::SMTP; use strict; my $smtpserver = '10.154.118.140'; #my $smtpserver = '127.0.0.1'; my $smtpuser = 'myname'; my $fromemail = 'myname@mycompany.com'; my $smtp = Net::SMTP-> new($smtpserver, Timeout => 10); $smtp-> …

Member Avatar for orwell84
0
124
Member Avatar for akaspro

New to perl and asking for help. I need to execute the following: 1. Extract text between double quotes from text file located in subdirectory of INI directory 2. Search in directory TestData for the file with name that matches the text extracted in 1. 3. Copy the file from …

Member Avatar for akaspro
0
95
Member Avatar for Gonbe

Hello Daniweb community, Recently I bought a new harddrive. Below is a link to the manufacturer's website and the model: [url]http://www.seagate.com/ww/v/index.js...D&locale=en-US[/url] I connected the drive according to the instructions and then booted up my computer. The drive got detected in the BIOS so i booted up Windows. I then went …

Member Avatar for Gonbe
0
173
Member Avatar for vesnushka

Hi everyone!! Help me please with my script. I'm using Perl Express for scripting in . This is my script: [CODE]use warnings; use strict; open (file,'C:\Documents and Settings\soea\Desktop\Test.docx') || die "Can not open: $!\n"; @file = <file>; for (my $i = 0; $i<=scalar(@file)-1; $i++;) { if ($f[@file] =~ /^Exec.+\n/) { …

Member Avatar for vesnushka
0
319
Member Avatar for blerina12
Member Avatar for canadatom

Here is my javascript code: [CODE]var xmlhttp; var result; function load() { xmlhttp=null; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=state_Change; xmlhttp.open("GET",getLauncherPath,true); xmlhttp.send(null); } function state_Change() { if (xmlhttp.readyState==3){ if (xmlhttp.status==200){ result = "readyState = …

0
65
Member Avatar for chandrag

hi, I am new to perl. actually, i'm using perl with SOAP::Lite to access a web server. I wrote some code in a notepad and saved it in c:/perl/eg. by typing 'perl filename.txt' after changing the directory into c/perl/eg> in command prompt, i am getting the result what i want. …

Member Avatar for dangidipu
0
934
Member Avatar for canadatom

Hi Guys, I am new to Ajax, I am trying to output results by using perl script calling from Ajax, [code] function launcher(){ new Ajax.Request(getLauncherPath, { method:'post', parameters: { tag: "yadayada", uid: "12345", pwd: "blah", action : "blah" }, onInteractive: function(transport){ var response = transport.responseText; $('launcher').update(response); }, onFailure: function(){ alert('Something …

0
43
Member Avatar for michelleradu

Hi I need to save the values printed in a html table from the database in a CSV file if requested by user. I've only managed to save the header of the table so far. The MySql query is made in a page called reportclient.php which then calls phpReportGen.php in …

Member Avatar for michelleradu
0
165
Member Avatar for john_prince

Hi, In our organization, there are lot of users who do not have their phonenumber in proper format. the correct format is : xxx-xxxx. Therefore, i've pulled out a all users report, consisting of two columns, one with name and other with phonenumber, the report is in csv format. Does …

Member Avatar for d5e5
0
83
Member Avatar for mvignesh31

hi, i want to send my perl output to a notepad. is it possible.. for instant, my perl result with some dna sequence should be copied to a new text file. is it possbile... can any one help me.

Member Avatar for onaclov2000
0
115
Member Avatar for Mobius1234

print"Enter the number of Cricketers: "; $list=<STDIN>; chomp $list; until($list<=0) { print"Enter Cricketer name: "; $name=<STDIN>; print"Enter a number: "; $number=<STDIN>; chomp $number; $list--; push(@names,$name); push(@numbers,$number); } print"Cricketer's name and the corresponding number are\n"; format STDOUT=@<<<< @>>>> "@numbers", "@names" . I have this code. The question is "Write a program …

Member Avatar for onaclov2000
0
119
Member Avatar for sfrider0

I have recently made a program that gets the links from a webpage, then checks to see if they are valid or not. I used the HtmlElement to get the "HREF" attribute and stored all the links into a list. I also tried using the HttpWebRequest and stored the stream …

Member Avatar for apegram
0
140
Member Avatar for alvalany

I know the heading is a bit confusing.. what made me to put this question here is that :Recently i heard an article that [URL="http://lwn.net/Articles/69835/"]the rumours are true! GTK is LGPL, QT is GPL big difference[/URL] It means even if I create something with front end QT , I can't …

Member Avatar for pritaeas
0
213
Member Avatar for mvignesh31

hi i want to translate the single letter aminoacid code to triple letter code. how can i do that using tr///; command. can any one help me.

Member Avatar for mvignesh31
0
246
Member Avatar for jaybstory

Hello, I am new to the perl programming language and I have a question. I was wondering if it was possible to implement an array of strings that contains video files? I also wanted to know if it was possible to create state machines using the perl programming language? Thank …

Member Avatar for d5e5
-1
112
Member Avatar for Vindhyaauri

Hello!! I have to design a program which can read the following file: [CODE]k1082 SciTegic08250908273D 30 32 0 0 0 0 999 V2000 0.3230 -0.6380 -0.7700 C 0 0 1.1810 -1.2460 -1.7340 C 0 0 2.5950 -1.1640 -1.6010 C 0 0 3.1670 -0.4730 -0.5020 C 0 0 2.2620 0.0980 0.4020 …

Member Avatar for Vindhyaauri
0
190

The End.