2,452 Topics

Member Avatar for
Member Avatar for abdulraqeeb33

Hi, I have few weblogs, example below 65.96.112.177 - - [27/Jan/2007:00:02:10 -0500] "GET /~jking/images/ralph.jpg HTTP/1.1" 200 66196 65.214.44.44 - - [27/Jan/2007:00:02:27 -0500] "GET /~jkabara/Research.htm HTTP/1.0" 200 4696 207.46.98.52 - - [27/Jan/2007:00:02:29 -0500] "GET /~mweiss/new/background.htm HTTP/1.0" 200 3905 207.46.98.52 - - [27/Jan/2007:00:02:35 -0500] "GET /%7Epaws/project_pacer.htm HTTP/1.0" 200 15645 207.46.98.52 - - …

Member Avatar for abdulraqeeb33
0
89
Member Avatar for ryy705

Hello, I am trying to learn how to embed properly. The following code works. But it does not pass W3C validation as XHTML 1.1. What am I doing wrong? [CODE] <object width="631" height="324"> <param name="movie" value="files/flash.swf"> <param name="wmode" value="transparent" /> <embed src="files/flash.swf" width="631" height="324" wmode="transparent"> </embed> </object [/CODE]

Member Avatar for rajarajan2017
0
266
Member Avatar for sarfrazashfaq

Hi there I am translating PERL code into python and i am new on both language.I have one question if we have hash key reference in PERL like this way $a->{b} how we can traslate it into PYTHON? and if we have this code $a->{$b} , how we translate it …

Member Avatar for sarfrazashfaq
0
179
Member Avatar for mcintosh

Gentlemen and Ladies - Help!!! We have converted a legacy COBOL system that has about 500,000 lines of code to the web using MicroFocus tools and Perl. We are using ActiveState Perl 5.8.9 on Windows Server 2003 .Perl is the "glue" for the system. The front ends sole purpose is …

0
52
Member Avatar for johndoe444

The following code fragment from Programming Pearls: [CODE]for i = [0, n) if comlen(a[i], a[i+1]) > maxlen maxlen = comlen(a[i], a[i+1]) maxi = i[/CODE] I am not sure why he called the comlen function twice? Instead he could save the computed value in a temporary and use it to assign …

Member Avatar for rdxblast
0
132
Member Avatar for Vandithar

Hi, I am using ppm shell to install a perl module in windows. I have set http_proxy=http://localhost:8080. I don't have proxy server i am using TATA Indicom Connection. When i tried connecting and downloading perl module i got error like this: [code] ppm> install Mail::Sendmail Downloading Mail-Sendmail-0.79...failed 500 Can't connect …

Member Avatar for d5e5
0
378
Member Avatar for UberJoker

Hey Guys. I cant actually think of a way to do this. Let me rephrase my question. I essentially want a perl script to run based on something that i am doing in javascript. for example: <javascript> if(x == 1) { then run the perl script. } </javascript> i dont …

Member Avatar for Airshow
0
3K
Member Avatar for SergioQ

Hi All, Have a module that already opens and reads my POP3 email. I was hoping there might me a ONE stop module that will take any email and translate it all into just SIMPLE TEXT? any ideas? Thanks ahead, as always Sergio

0
59
Member Avatar for Manny7

Hi, i've problem with reading arguments on command line. I don't know, how do I distinguish, if the user entered some argument with one or two dashes. I try: [code] while($ARGV[$i]) { if($ARGV[$i] == '--anything') { print "The argument with '--'.\n"; } else { print "The argumentwith '-'.\n"; } $i++; …

Member Avatar for Manny7
0
108
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
82
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
124
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 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
99
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
47
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 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
283
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 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
47
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
93
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
932
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
82
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 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
245
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
111

The End.