2,452 Topics

Member Avatar for
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
163
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
85
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
93
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
42
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
89
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
64
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
501
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
170
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
93
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
116
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
94
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
709
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
933
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
66
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
27
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
88
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
111
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
120
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
950
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
97
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
288
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
281
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
107
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
85
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
245
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
55
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
208
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
169

The End.