2,977 Topics

Member Avatar for
Member Avatar for dash1983

Hi, This might be more appropriate in the PHP section, I'm not sure - still a newb. I have read this problem in other threads, but can't seem to make the solutions work for me. I have a table that shows the results of a query for either pat_id or …

Member Avatar for rahul.anand77
0
195
Member Avatar for lebron

Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing …

Member Avatar for lebron
0
97
Member Avatar for seriousgeek

Hello to everyone at Daniweb.. :) I'm currently studying B.Tech 2nd yr in the field of computer engineering in India..I'm quite tensed about the prospect of placments..Can anyone please suggest what all computer skiils or languages should i know for increasing my chance in placements into companies like Yahoo?? Currently …

Member Avatar for Stinomus
0
166
Member Avatar for affee

I have a script that needs to extract data using perl modules. I cannot write it using php because the site would need a complete rewrite. I need to get a string (it is xml) sent by a post to a php script. and I have no idea how. I …

0
40
Member Avatar for VernonDozier

I have what I thought was a straightforward program. [code=Perl] #!/usr/bin/perl -w use strict; $a = 6; $b = 9; $c = 7; print $a . "\n"; print $b . "\n"; print $c . "\n"; [/code] I assumed this would display: [code] 6 9 7 [/code] and it does when …

Member Avatar for VernonDozier
0
219
Member Avatar for jkrabbenbos

I found myself lurking quiet often on this site. Today I thought why not become a member. I've been programming long long years (first industrial environments, later business applications and nowadays somewhat gaming). Have been programming in a lot of languages (C, C++, Java, Perl, Python to name a few). …

0
5
Member Avatar for gsarin

Hi, I have a perl-cgi script (on apache server). The script is called when user selects some arguments and presses submit button from HTML form using get method. The script inturn calls some batch files using system command and does some other things depending on the arguments selected by user. …

0
83
Member Avatar for raj24x7

below is my oracle procedure [code] DECLARE TYPE r_cursor IS REF CURSOR; c_emp r_cursor; er PLAN_T%ROWTYPE; BEGIN OPEN c_emp FOR SELECT * FROM PLAN_T WHERE ROWNUM < 5; LOOP FETCH c_emp INTO er; EXIT WHEN c_emp%NOTFOUND; dbms_output.put_line(er.OBJ_ID || ' - ' || er.NAME); END LOOP; CLOSE c_emp; END; [/code] it …

0
45
Member Avatar for dumbncool

Hello, I'm writing a MFC application to move a picture control when i press the "Next" button. (Please see attached screen-captures) There is a dialog box on which there are 2 picture controls. When I press the Next button, the left picture control should move on top of the right …

0
48
Member Avatar for larryperl

Hi, I am writing a perl script and need some in extracting some data. Basically it is a Log Analyzer and there are multiple log files from where the data comes. i am done with the grep part of the userID with this code- [Code] #!/usr/bin/perl -w open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); …

Member Avatar for larryperl
0
348
Member Avatar for vahiddani

I have a text file with something like this in it: >ENSG00321 Gene_ch19 . . . . AATAGCGGTTAACATATTAATTAAACTAATGTATAGATATTATCCGCTTCCAGATTTATTATTTTGTAAA ATAGGCACAGTTCTTATCTGGTGTCACTTTATGCTTTTTTAATAGACGCCCAGCTCTACTCATGGCCAAG . . >ENSG00531 Gene_ch5 . . . . AAAGAAGCGTAGGCCCGCCATGCAGCGTAAAAAGGATAATGCGGAGCAGCGGTCCCCAAAGACTGATTTA TCAAAACTGTTTTCGCAGCAATTAACACACCCACCGACCAGTAACACCGCTGCAAGCAAGGCCACGGGCA . . I have some headers like (ENSG00321) too. I want to search in text files with header and then get …

Member Avatar for vahiddani
0
119
Member Avatar for gsarin

Hi, I have a perl-cgi script (on apache server) that is running fine when one user runs it. The perl-cgi scripts runs batch files using system command and has some other rules. How do i make it run for many users? My basic knowledge tells me that I have to …

0
71
Member Avatar for anzaan

hii ppl... i want to open an excel file stored in c:\ drive. i have a link in JSP file. i want to open the excel file when a user clicks on link. the problem is while running the application on server, i m not able to open the any …

Member Avatar for kvprajapati
0
158
Member Avatar for austinium

Hi, I am new to Perl and am trying to port an old version of checkstack.pl to run on windows, the code iam trying to port is [code=perl] # Usage: # objdump -d vmlinux | stackcheck.pl [arch] # # TODO : Port to all architectures (one regex per arch) # …

0
101
Member Avatar for ajay_p5

Dear people I have been trying to fetch some data from the web. For this I am using the LWP:: Simple module. The problem is that I have been trying to pass a value to the URL in get function. here is my code: use LWP:: Simple; $iq= 'all_proteins.data'; $id= …

Member Avatar for ajay_p5
0
151
Member Avatar for Kelicula

I need to include a "variable" in my regex that will be different each time it is called. Very fustrated, this would have taken 2 seconds in Perl. Here is my code: [code=javascript] for (y=0; y < response.length -1; y++){ var _row = response[y].split(':'); var str = "_row[1]"; if(str.match("/^"+_inputText.value+"/i")){ _responseText …

Member Avatar for itsjareds
0
13K
Member Avatar for redmaverick

print ( "fred" gt "harvey" ); what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII.

Member Avatar for KevinADC
0
129
Member Avatar for vigneshrao

[CODE]Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where …

Member Avatar for KevinADC
0
134
Member Avatar for sowmyav

Hi, I would like to know whether the Data parsing can be done by perl scripting by checking the specified the webpage and fetch the data from the page and load the same i nto the sql server table. In the sql server table, it checks for a value called …

Member Avatar for kenji
0
133
Member Avatar for k2k

hi, i am trying to write a script to generate a big number of users in perl.. it is actually my second time writting perl .. i used to write shell scripts before. my little script seems not working because "useradd" isn't found by the compiler. if anyone may point …

Member Avatar for katharnakh
0
161
Member Avatar for gagan22

Hi everyone, I am using a mail function in my contactus form. But for some id it is sending infromation of contac us form but some time it is not sending like on my gmail id i am not getting mail. what is the reason behind this. I have tried …

Member Avatar for peter_budo
0
273
Member Avatar for dolly37

I have to read a bin file in perl/tk. I have been able to read and open the file, but the read in file only has every other line from the original file. I am using following to open the file. my @contents; open(FILE,"example_data4.bin") or die"cant open file: $!"; @contents …

Member Avatar for crb3
0
127
Member Avatar for rana03

Hi, How to send email notification when particular tests fails. Any input is appreciated. Regards, rAnA

Member Avatar for crb3
0
95
Member Avatar for rana03

Hi, I am creating script to execute a command. for example my directory is /home/rana/script/ and then i want to execute ./abc.sh file from there i am using following command system("cd $output_directory") ; system("./abc.sh"); where my output directory is /home/rana/script/ but i am unable to execute ./abc.sh clean build-all file …

Member Avatar for crb3
0
123
Member Avatar for derekn

I am writing a counter that is created on the fly using GD::Image. I am running into a problem with setting a cookie to ensure that the same user is not counted more than once, as I wish to only count unique hits. The problem is setting the cookie. I …

Member Avatar for derekn
0
254
Member Avatar for Vandithar

Hi, I have a string like this: [code] $string="Lake City 84132, USA. FAU - Carrell, D T AU - Carrell DT FAU - Emery, B R AU - Emery BR"; [/code] I want to extract AU and only its contents. The output should be like this: [code] AU - Carrell …

Member Avatar for katharnakh
0
106
Member Avatar for hemanthjava

Hello there, I am using the JTextPane in my Java Swing Application. How do I make it Handle Hypelinks. Like lets say the use enters [COLOR="Green"]\\some_foldername\some_subfolder_foldername\some_file.xls [/COLOR]or any other file type, It should Automatically, treat it as a hyperlink. Is it Possible to have such a functionlaity [B][U]JTextPane Hyperlink Functionality[/U][/B] …

Member Avatar for hardik.rajani
0
2K
Member Avatar for perlguy

I'm trying to append a string to an array value and it doesn't seem to be working. Can someone tell me what I'm doing wrong? The array values will be URLs with a trailing forward slash. [url]http://www.mywebsite.com/Details/product-type/New-York-293486/[/url] $values[10] .= '?cid=spontrue';

Member Avatar for KevinADC
0
126
Member Avatar for kenji

Hey, I have used the LWP:\:Simple module and saved the source of a website in a file. I am trying to extract all the data between the <head> tags and pass it to a variable to process. So far I can't seem to extract the data properly. Any suggestions? [code=Perl] …

Member Avatar for KevinADC
0
168
Member Avatar for yssirhc

I have a web page that prints information from a database based on the query string variables. Sometimes the page loads just fine and other times it gives the message "Use of uninitialized value" for every single one of my database variables. The times it gives this message seem to …

Member Avatar for katharnakh
0
156
Member Avatar for zillah

Hi I tried to use new branded “R-Driver III” USB 2.0 TO SATA IDE CABLE device with Laptop HD IDE and Desktop HD IDE (once at a time) but it did not show me the HD , although I checked Disk Management (each one at a time) I thought the …

Member Avatar for Xlphos
0
181
Member Avatar for anewhope

I am in the process of learning perl to go along with web design. I am trying to learn perl, ajax, css, xhtml, and javascript. If anyone can help me out, please let me know. thanks

Member Avatar for Xlphos
0
59
Member Avatar for gsarin

Hi, I am trying to run a Perl-CGI script through Tomcat Server and running into issues. The script runs fine through command prompt and also runs half through webpage. The problem comes when I try to access some files in directories located on some other server. I think tomcat security …

Member Avatar for gsarin
0
451
Member Avatar for Mchelle610
Member Avatar for mitchems
0
93
Member Avatar for LSU_223

Hi - Major novice here. I'm trying to write a code that starts with a user defined number (lets say "N"), picks a random number between 1 and N (lets say "R"), pushes R onto an array, subtracts R from N, then picks the next random number from (N-R), pushes …

Member Avatar for LSU_223
0
298
Member Avatar for bigtiny

Hi all, I have a pretty specialized problem/question I think. Let me start by saying that I'm dealing with a bunch of new stuff and trying to learn as I go. I just heard of XPATH the other day, and I'm using it in a pretty restricted context (more about …

0
68
Member Avatar for toolmanx

I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will …

Member Avatar for MrSpigot
0
1K
Member Avatar for yssirhc

I created a database within MS Access - no SQL code - and set a field to "Memo". When I go to my web app that inserts some form data into the database, if I type too much into that one field on the form, I get "Invalid Precision Value". …

0
78
Member Avatar for toolmanx

I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will …

Member Avatar for toolmanx
0
133
Member Avatar for santhanalakshmi

Hi, open(MYINPUTFILE, "<access.log"); while(<MYINPUTFILE>) { # Good practice to store $_ value because # subsequent operations may change it. my($line) = $_; # Good practice to always strip the trailing # newline from the line. chomp($line); my($time, $elapsed, $remotehost, $csp, $bytes, $method, $url, $user) = split(' ', $line); # Print …

Member Avatar for santhanalakshmi
0
173
Member Avatar for kischi

Hi, I have a problem with a scrollbar, once in a while when I try scrolling up or down it jumps to the recent position of the scroll. You can see the problem on: [url]http://radiojazz.dk/udsendelser.aspx[/url] And then try to scroll abit and see that it jumps. Does anybody know how …

Member Avatar for kischi
0
155
Member Avatar for luckyads

Hi All, I want to pass an id via querystring from a hyperlink in a datagrid. How can I do it? I wrote the following, but got an error "The server tag is not well formed" [code] <asp:HyperLink [B]NavigateUrl="~/users/matrix.aspx?Exercise=<%# DataBinder.Eval(Container.DataItem,"hid")%>"[/B] Text="Link" id = "lnkLink" runat="server"></asp:HyperLink> [/code] Please help! Thanks in …

Member Avatar for luckyads
0
454
Member Avatar for musturd

[code=perl]#!/usr/bin/perl use warnings; use strict; push @INC, "C:/Perl/Modules"; print "What is current download directory? "; my $dir = <STDIN>; opendir DH, $dir or die "Can't open directory..."; my $parent = $_; while ($parent = readdir(DH)) { next if $parent eq "." or $parent eq ".."; if(-d $parent) { opendir DI, …

Member Avatar for musturd
0
192
Member Avatar for rana03

Hi, I am working on a assignment where I have results sheet which is in form of text file; I want text file content to be written in excel sheet; generally we manually copy and paste the results in excel sheet. Our existing excel sheet has 70(sub-sheets) e.g result of …

Member Avatar for mitchems
0
190
Member Avatar for dolly37

Hi all, I want to write a perl script which will parse a .cpp file to extract the member variables of a function and log them into a text file. Then I have to read this file using Tk and display the contents of the file. I have the perl …

0
72
Member Avatar for rana03

Hi, Can somebody let me know how to check whether particular network drive is mapped or not e.g x:\\share1\share2? Regards, Rana

Member Avatar for rana03
0
234
Member Avatar for mysouthcity

I need help writing a Perl script that check and validate the information entered by users into an HTML form. Once the information is correct you will add the information validated into a database.

Member Avatar for KevinADC
0
51
Member Avatar for zynap

Hello, I am trying to add hyperlink to my mysql query result. I have a table called EastLondon which consist of the following: [code] (restaurant_id INT UNSIGNED PRIMARY KEY, restaurant_name VARCHAR(20), phone_number VARCHAR(20), picture varchar(8), website varchar(40)); [/code] I extract all these info into a table using php. What I …

Member Avatar for ShawnCplus
0
4K
Member Avatar for orwell84

I'm having a problem with the substr function. I want it to be dynamic in a for loop as follows: [code="perl"] for ($i = substr $bin, $sub, 1 ; $sub < $len2 ; $sub++){ [/code] You can probably guess what this code is meant to do. I want to read …

Member Avatar for orwell84
0
310
Member Avatar for duke5700

Hi all, Just a noob with an easy question :). Given this DTD [code]<!ELEMENT multimedia_format (description, examples, references)> <!ATTLIST multimedia_format name CDATA #REQUIRED> <!ELEMENT description (p+)> <!ELEMENT p ((text|em|strong|abbr|quoted_text|citation)*)> <!ELEMENT text (#PCDATA)> <!ELEMENT em (#PCDATA)> <!ELEMENT strong (#PCDATA)> <!ELEMENT abbr (#PCDATA)> <!ATTLIST abbr fulltext CDATA #REQUIRED> <!ELEMENT quoted_text (#PCDATA)> <!ATTLIST …

0
71

The End.