2,452 Topics

Member Avatar for
Member Avatar for crodriguez08

Hey there, I need some help with the placement of constructors and how the second constructor would work (there's two of them). All I ask is for some explanation. These are the exact instructions: The default Constructor should build a dynamic array of size 3 for the grades. Another constructor …

Member Avatar for crodriguez08
0
475
Member Avatar for Chames

I have no idea where to start with this... I have no experience coding with perl, so maybe if someone could show me to a guide about how to go about doing this and push me in the right direction I have a website where users can uploaded recorded games …

Member Avatar for mitchems
0
80
Member Avatar for joeygupta

i have a windows vista and it isnt starting properly. i have tried: startup repair- not working restore to a point of time: not able to back up: not working please if anyone has a solution that u know would work TELL ME

Member Avatar for oA9999
0
151
Member Avatar for Sharvesh

I have a speradsheet which should be converted into HTML page using perl script. It should be generic so that if I change anything in the excel sheet this should reflect in the HTML page. Please can anyone help me? Eagerly waiting for some one's reply

Member Avatar for syedmahtab
0
126
Member Avatar for ajay_p5

Hello Everybody I am facing some problems while processing a file containing a several lines like this : 1 1134177124.U.0 1134177124.+.613 1134177163.+.2234 1134208365.D 1134520916.U.0 I need to arrange it like this: 1 1134177124 U 0 1 1134177124 + 613 1 1134177163 + 2234 1 1134208365 D 1 1134520916 U 0 …

Member Avatar for ajay_p5
0
91
Member Avatar for niall_heavey

Hi all, I'm trying to set up code that will allow me to do the following: Read in a csv file, In columns 3 and 5 there is similar information, I want to count how many times each unique entry is in either of these columns. For example: col 3: …

Member Avatar for d5e5
0
790
Member Avatar for tkms

I have a piece of client software which sends an HTTP POST request asynchronously using a "chunked" transfer encoding ($ENV{HTTP_TRANSFER_ENCODING} is "chunked"), which I'm utterly unfamiliar with -- and unfortunately I can't change the client specification. I need to write a simple server script to receive the client's chunked data, …

Member Avatar for scrappedcola
0
500
Member Avatar for QWaz

Hi, I am having a bit of trouble getting my fetch(PDO::FETCH_OBJ) to print the way I want. I am also unsure if fetch(PDO::FETCH_OBJ) is the right thing to use. Code below. [CODE] $sqlTotal = "SELECT SUM(price) FROM `$user` WHERE `cart`=1"; $total = $conn->query($sqlTotal); $total->execute(); $totalResult = $total->fetch(PDO::FETCH_OBJ); $totalResult = print_r($totalResult); …

Member Avatar for QWaz
0
143
Member Avatar for pritesh2010

can any one help me for this code. i had created 2web page say home, employee and master page. on the mater page i want to show all the employee who are online now. for that i'm firing the query and i got the all the employee name through SqlDatareader.Now …

Member Avatar for pritesh2010
0
102
Member Avatar for Krstevski

Hello friends, can someone explain to me how can I submit form with radio button ? I know how to fill and submit form if the form contain just a textboxes, here is the code: [CODE=perl] #!c:\\perl\\bin use strict; use WWW::Mechanize; use HTTP::Cookies; my $outfile = "out.htm"; my $url = …

Member Avatar for Krstevski
0
359
Member Avatar for tones1986

Hey All, I am looking to make a couple of scripts to do the following (seperate files, not all in one). DNS, MySQL, POP3/IMAP+SMTP Basically, i want to try connecting to these sources, and check they are running on the server. If they are not running, i will create a …

Member Avatar for Krstevski
0
165
Member Avatar for yuvi2288

Hi experts, This is the snippet for html file <li><a href="#">Electronics</a> <ul> <li><a href="">Mobile Phones</a></li> <li><a href="">Television</a></li> <li><a href="">Air Conditioners</a></li> <li><a href="">Photo & Optics</a></li> <li><a href="">Audio Systems</a></li> </ul> </li> And there is one jsp file called electronics.jsp.. If i click any one of the above, it should be go to …

Member Avatar for musthafa.aj
0
87
Member Avatar for mroberts

I need some help. I have figured out most of my script but I need to search a string and see if it starts with certain characters and Does not end in another. [$line1 = "EB*1**96" #should produce true value and blank line] [if ($line1 =~ /^EB\*/ and $line1 ne …

Member Avatar for d5e5
0
95
Member Avatar for mroberts

I am somewhat new to Perl and I am getting the wrong result. The parser part works great and it sorts out like I want. However as it reads through and parses the file I can get it printed out to an out file however I can not seem to …

0
44
Member Avatar for KAY111

Hey, I was trying to delete a particular pattern say something like <HTML> from a text file. How would I do that in perl?

Member Avatar for d5e5
0
94
Member Avatar for PhoenixInsilico

/success$/ will match "unsuccess" but not "successful". But I have some problem in understanding it when used in some situation like $string =~ s/\s*$//; What does here the $ means?

Member Avatar for masijade
0
67
Member Avatar for thego!team

Hi, If it's not too much trouble I would appreciate some help with this - how can I iterate through multiple files in the current directory, opening one after another? For example all files with a name matching students_*.html format. I'm not concerned with files contained in sub-directories. I've searched …

Member Avatar for raul15791
0
504
Member Avatar for KAY111

Hi guys, I am writing this perl script. Basically, what I want to do with this is that I have a text file vec.txt which looks something like this: <T> chemical- and bio-terrorism </T> <T> <C> nerve agents </C> </T> , <T> toxic proteins </T> <T> toxic protein </T> <T> …

Member Avatar for mitchems
0
172
Member Avatar for prabhabati

How to pass a hidden variable to servlet/action class on clicking of a hyperlink in jsp page.

Member Avatar for stephen84s
1
95
Member Avatar for BastienP

Hello Dear DaniWeb community Here I am again, with a new problem :-) For those of you that are reading every post you probably have already seen that I'm trying to implement an auto-extracting process which extract data from ActiveDirectory, process it in order to make a filtered csv file …

Member Avatar for mitchems
0
1K
Member Avatar for deeptakshd

in my web page i am having different hyperlinks for letter a to z and now i want to display all the details in gridview of the names starting with particular letter in my db table on clicking of hyperlink.. plz help its urgent..........

Member Avatar for Abdul Rouf
0
119
Member Avatar for anraevlus18

Hi I am new to perl...I have a file in which sections are seperated by "//************************************************" How can i search for the asterisk character using regular expressions? =-------------- open(IN, "<$inFile") while (<IN>) { if (/^\/\/**/) #here is the error..search for multiple '*' character { print "Seperater found" } } pls …

Member Avatar for anraevlus18
0
1K
Member Avatar for ramagiri

HI, I would like to know, what are all the scenarios under which perl is used for software testing... this will be useful to me :!:

Member Avatar for testuser_forum
0
99
Member Avatar for becon

Dear all I would like to read every file in a directory, if each file contains a line 'KAC 50' I will write to an output file. My code below write all the out output into only 1 file. How can I have many output files corresponding to the input …

Member Avatar for becon
0
716
Member Avatar for Feisu

Hello.everyone. I met a problem today and search for a long time without any luck:( I want to limit length in textbox. not total maxlength but maxlength perline. for example. if I choose to limit 7 char per line. when words exceeded 7 in a line textbox will start a …

Member Avatar for apdbrl1
0
946
Member Avatar for Grantism

Hey guys this is my code [code] <a href="Links.php"><img src="images/downloads.png"></a> [/code] How do i get rid of the blue border that goes around it?!!?? Thanks

Member Avatar for rajarajan2017
0
68
Member Avatar for ixthy

Hi everyone!!! Have somebody succesfully installed bioperl on snow leopard? I tried Fink and CPAN, but no luck. It seems impossible! Cheers!!!

0
30
Member Avatar for daviddoria

I hear perl is the way to go for string parsing, so here is the test! I have a file like this: [code] ... <li><a href="DSC_9866.JPG"> DSC_9866.JPG</a></li> <li><a href="DSC_9867.JPG"> DSC_9867.JPG</a></li> ... [/code] and I want to get a list of the file names. That is, the result I want is …

Member Avatar for daviddoria
0
90
Member Avatar for shadiadiph

Hi I have never really bothered with javascript before but i am having alot of problems with a ajax php form my php code returns [code] if ($states==false) { $result = 'nostates'; $result = trim($result); return $result; exit; } [/code] And my javascript alert returns nostates but always executes the …

Member Avatar for shadiadiph
0
112
Member Avatar for ibdatx

I have this code and having matched the input, I want it split into two separate variables. The input is in the form of a range (e.g: 1-10) and is written in perl. Here is the code: [ if($pr=~m/^([0-9]+)\s*[-]\s*([0-9]+)$/){ print "Match"; } else { print "Not a match"; } ] …

Member Avatar for ibdatx
0
123
Member Avatar for Grep

Hi all, In order to run an excel macro, I need my personal.xls excel file open so I open it along with the file I'd like to run the macro in. Problem is when I close the program I use save/close. But for some reason it still pops up a …

Member Avatar for mitchems
0
956
Member Avatar for spinachio

I have a text file that looks like Y07976.1/124-271 Y07978.1/48-201 and I want to remove everything after the forward slash such that in the end the text file will look like Y07976.1 Y07978.1 I am currently learning perl and I think regular expressions are going to be a trouble for …

Member Avatar for spinachio
0
101
Member Avatar for becon

Hi everyone, I would like to parse this text file PREVIT:nmrValidate_166w.pdb atoms "A -750 -GLU -CG " and "B -54 -GLN -CG " 3.8759 A apart atoms "A -750 -GLU -CD " and "B -54 -GLN -CG " 3.8447 A apart atoms "A -750 -GLU -C " and "B -51 …

Member Avatar for becon
0
296
Member Avatar for deeptakshd

i m having a webpage which is having a gridview which is displaying data from database........now on the same same web page their exists some hyperlinks namely A, B ,C.....upto Z ............can anybody plz help me out on how to display the new data (clicking of hyperlink A result in …

Member Avatar for prashantchalise
0
283
Member Avatar for Grep

I have numerous amounts of .ini files that I have to extract specific lines from. Say Lines 1,5,9,23,63,31 (each in a new line) from all files. So as you can see, no sort of pattern and I jump around in lines. I'd like to write a perl script (which I …

Member Avatar for mitchems
0
110
Member Avatar for scorpio222

hi everyone, i am working on a project, where when a user registers, he would be provided with a link which he can give to anyone and ask them to register. once this new user, uses that link to register, he will be automatically assigned certain points, that was set …

Member Avatar for scorpio222
0
87
Member Avatar for Grep

Hi guys, I would like to execute something like this in my program: system("C:\test\perl\a.pl"); But the problem is i need to execute: perl a.pl Can't just execute the a.pl and expect it to run. Any ideas on how i could simply open up the cmd prompt with my program and …

Member Avatar for Grep
0
254
Member Avatar for Grep

I would like my C program to run my perl script: I have something like this in mind: system("C:\test\perl\a.pl"); But obviously it needs to do perl a.pl. Not just execute the a.pl. Any ideas? Something simple would be appreciated.

Member Avatar for Grep
0
57
Member Avatar for Grep

Hey guys, quick question, I'm a beginner and put together a grep script that searches for certain content within text files in a directory. The result yields over 600 lines so i want to put them in a file called file.txt. [CODE]opendir (DIR, ".") or die "$!"; my @files = …

Member Avatar for Grep
0
211
Member Avatar for niall_heavey

Hi, I am trying to get to use the grep function in perl, I have been searching web pages but can't get a simple example. I am reading in a .csv file with 7 columns and loads of rows, this is done with: [code] $dat_file = 'sample.csv'; [/code] In the …

Member Avatar for niall_heavey
0
173
Member Avatar for techstu

HI can anyone tell me how to start with a project to read pattern files in perl...I am really confused...

Member Avatar for k_manimuthu
0
81
Member Avatar for miturian

So, in the course of a bigger project, I need to generate normally distributed random numbers. I've decided to try to use the GSL rng library. From [URL="http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Generator-Examples.html"] the gsl webpage[/URL] I got an example code, just to get an idea of how the interface works. The program looks like: …

Member Avatar for miturian
0
2K
Member Avatar for jpakerla

Hi guys... I need a PHP code which will display a hyperlink only between 8:00 am - 8:00 pm. Thanks.

Member Avatar for matthewl
0
74
Member Avatar for kishore5001

Hi everyone I want to know what is __END__ mean , is this the end of the file. For what this is used in PERL? Thanks

Member Avatar for afbach
0
2K
Member Avatar for ajith1988ts

Hi friends, i want to make a gui using perl qt, any one have any useful links plz send me. faithfully

Member Avatar for scrappedcola
0
30
Member Avatar for mona_j05

i have 10 data notepad files (with column x= 1 to 5 and column y = some random number) x y 1 12 2 13 3 8 4 6 5 2 i want to multiply the 1st file's second column with 3, and save it as new data file Increase …

Member Avatar for mona_j05
0
178
Member Avatar for jamello

I would like a table cell to act as my hyperlink. What I have currently is a hyperlink embedded in a table cell, hence it is only when the exact underlined hyperlink text is clicked that the url is obeyed. But not when you click anywhere else. [e.g <tr><td><a href=www.meme.com>clickMe …

Member Avatar for dennisrivers2
0
174
Member Avatar for i_luv_c++

hey guys my while loop is not working correctly..doesnt matter which character i enter it will still run the loop..and what it should do is test to see if character entered is 'y'(well thats what i want it to do ) thanks!! [CODE]#! /usr/bin/perl $exp = "y"; while ($exp =="y") …

Member Avatar for djacob
0
321
Member Avatar for hhheng

I'm sending a post to an url, and after successfully sending the post, it will turn to another page, now how to find the another page url? <code=perl> #!/usr/bin/perl use LWP 5.64; my %form; $form{"name"} = $name; $form{"email"} = $email; $form{"grade"} = $grade; my $res; my $url = "http://www.mydomain.com/register.php"; SIG{ALRM} …

Member Avatar for mitchems
0
195
Member Avatar for shuklax

Hello, I am very much new to perl and to this forum also... pls help for this prob... I have 200 two colom data files like, xyz_channel_1.dat .....xyz_channel_200.dat. Coloms of each file is similer like below; First colom 'X' starts from 1 and ends at 200. and second colom 'Y' …

Member Avatar for shuklax
0
206

The End.