2,452 Topics
![]() | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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: … | |
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, … | |
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); … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hey, I was trying to delete a particular pattern say something like <HTML> from a text file. How would I do that in perl? | |
/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? | |
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 … | |
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> … | |
How to pass a hidden variable to servlet/action class on clicking of a hyperlink in jsp page. | |
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 … | |
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.......... | |
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 … | |
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 :!: | |
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 … | |
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 … | |
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 ![]() | |
Hi everyone!!! Have somebody succesfully installed bioperl on snow leopard? I tried Fink and CPAN, but no luck. It seems impossible! Cheers!!! | |
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 … | |
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 … | |
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"; } ] … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 = … | |
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 … | |
HI can anyone tell me how to start with a project to read pattern files in perl...I am really confused... | |
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: … | |
Hi guys... I need a PHP code which will display a hyperlink only between 8:00 am - 8:00 pm. Thanks. | |
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 | |
Hi friends, i want to make a gui using perl qt, any one have any useful links plz send me. faithfully | |
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 … | |
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 … | |
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") … | |
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} … | |
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' … |
The End.