2,452 Topics

Member Avatar for
Member Avatar for mtramnes

Im taking a perl class not exactly sure if what Im doing is right. I was to take a written program that allowed the user to enter a number guessing what the target was. The original used elseif statements to let the user know if the guess was to high, …

Member Avatar for KevinADC
0
123
Member Avatar for MLA

I'm a noob and am struggling with what should be some fairly straightforward php and mysql coding. I have a page that I am building and am able to get the following code to work: [code=php]<?php include 'includes/config.php'; include 'includes/opendb.php'; ?> <div align="center"><h1> <?php $id=$_GET['player_id']; ?> <? $query= "SELECT p.player_id …

Member Avatar for MLA
0
78
Member Avatar for Techsavy

I have a file structure like this: \\Serversharedfolder\Folder1\Folder2\Workbook.xls \\Serversharedfolder\Folder1\Folder2\Folder3\ I am trying to create a hyperlink for the pdfs inside Folder 3 from Workbook.xls. How do I specify relative path to achieve this?.When I Copy Folder 1 to a DVD I want the hyperlinks to work. Any help is appreciated. …

Member Avatar for crunchie
0
54
Member Avatar for orwell84

Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't tell the differences in the time it took to generate the list, so …

Member Avatar for orwell84
0
155
Member Avatar for inked

hi, i need to output the number of sentences in a file. The file looks like this: For the eyeing of my scars, there is a charge, For the hearing of my heart, It really goes. And there is a charge a very large charge, For a word or a …

Member Avatar for inked
0
190
Member Avatar for jehamilt

I have a Perl program I am editing. The idea is to have it write a record to another file whenever a user access this program. Here is the Perl code I am using: open(MYFILE, ">>/usage.file"); print MYFILE "USERID: `whoami` used this on DATE: `date` \n"; close MYFILE; the problem …

Member Avatar for KevinADC
0
132
Member Avatar for spanish

Hello, Please i need some assistance running a perl script, i obtained a Google API key, installed a a perl editor to run the program, The server for the program went down,so this is the only way to access the application, however i experience errors when debugging the program on …

Member Avatar for KevinADC
0
158
Member Avatar for khalidmehmood

Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} …

Member Avatar for peter_budo
0
2K
Member Avatar for Gtrtech

I got the same virus on one of the workstations. I did the antivirus thing got rid of what I thought was all but now the only problem is right after you log in (I tried safe mode too) it logs you off. tried doing a windows repair but no …

Member Avatar for Gtrtech
0
219
Member Avatar for green_lakers

<code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite …

Member Avatar for green_lakers
0
100
Member Avatar for RohitSahni

I will be starting working on perl and java soon.. Can anyone please help, form where to start so that i get the confidence of working on it and i can do hands on.

Member Avatar for verruckt24
0
159
Member Avatar for inked

hi ive got this segment of code that im struggling with the code does what i want it to do in the sense that if i put in the filename of the file that i have created it works but for a random user the code will not produce the …

Member Avatar for KevinADC
0
118
Member Avatar for lameassthemity

I'm writing a class planner, where the user is given the opportunity to enter certain information about their classes and have it printed back to them upon request. The problem I'm having is that whenever I enter any text into the input with a space in it, it returns me …

Member Avatar for zalezog
0
130
Member Avatar for blboyd

I'm new to PERL but I'm picking up quick. I've been able to search a file for a certain string but now I need something slightly different and I'm completely lost. I need to search a text file for a string and return the text after it. I have a …

Member Avatar for Murtan
0
71
Member Avatar for Iggystooge

Hi, I came home yesterday to my computer doing weird things, including opening up windows explorer and lots of tabs on Mozilla. I realized it was a virus and did a virus check. I run Windows XP SP2. I went to safe mode. I use AVG for anti-virus, it found …

Member Avatar for crunchie
0
926
Member Avatar for bilbobrud

when i try to subtract 25 from 1000 i get 1000. have tried 900-25 and get 900. is this a known bug?

0
63
Member Avatar for perl1user

Hi, does anyone know where to find perl module Parse::RecDescent [email]cvv3@yahoo.com[/email] thx

Member Avatar for KevinADC
0
206
Member Avatar for perl1user

calling C/C++ function from perl from : [email]cvv3@yahoo.com[/email] Hi, how do I call a compiled C/C++ function from perl ? Let say I have a C/C++ function: [code] *char func(char *ptr, int len) { ... return str;} [/code] Now i wonna call it from perl

Member Avatar for perl1user
0
116
Member Avatar for protonix

I wrote a perl script to decode a file and it keeps giving me a weird out put. I have zipped my script and the encoded file. Can any one make any since or tell me what I am doing wrong?

Member Avatar for KevinADC
0
72
Member Avatar for Ale123

i used this code to generate image from flash .. <?php error_reporting(1); /** * Get the width and height of the destination image * from the POST variables and convert them into * integer values */ $w = (int)$_POST['width']; $h = (int)$_POST['height']; // create the image with desired width and …

Member Avatar for chili5
0
119
Member Avatar for Paryushan

Hi, I would like to automate some of my actions on command prompt using perl. can u plz help me how to start with it. Like I want to connect to oracle database and run a sql query. How do I do that? Here are the steps that I need …

Member Avatar for KevinADC
0
145
Member Avatar for Paryushan

Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just …

Member Avatar for Paryushan
0
75
Member Avatar for Paryushan

Hi, I am trying to write the output generated by a simple command "dir" to a file. Can you please help me do that? Here is what I am doing -- system ("dir"); this will run dir command on my D: drive now, I want to write this ouput (in …

Member Avatar for KevinADC
0
116
Member Avatar for nathanpacker

Hey everyone. I have an interesting perl idea, and am wondering if it's been done. I would like to have a page on my website, where someone could go in and chat with me. I wouldl like it so that, a person (that I have given a user name and …

Member Avatar for verruckt24
0
185
Member Avatar for PC_Nerd

Hi, Firstly Ill say that I'm a comlete newbie to perl, and this is more of an investigation question than a code one. I want to use perl for a CGI script- however I need the source code to be completely closed source - so that users cant decompile it …

Member Avatar for PC_Nerd
0
1K
Member Avatar for peg110

Ok, Here is my issue. I have written a script that takes Weblog files that have been GZipped. Parses them outputs the required data to another file. GZipps that file and leaves the original in tact (Actually it unzips it, then rezips it). Anyway, it runs just fine on my …

Member Avatar for KevinADC
0
203
Member Avatar for 000stephen

Thanks in advance for reading this, and commenting. The example below is from p.144 in the latest Lama book edition (O'Reilly 2008), and I can't get it to behave as the book states. It states that the diamond (<>) operator will take user input (which should be a file name), …

Member Avatar for 000stephen
0
137
Member Avatar for 4string

Hi, I'm trying to use Perl script to call WMI interface, but I found out the WMI ports are random, how can I restrict the range of TCP Ports(Actually, I wanna keep the same port access)? Is there any way to make sure this is always allowed? If anyone can …

0
87
Member Avatar for calcop

Hello everyone. I have created a sales system for my company. Basically you telnet to the system and enter your login name, password ... From there you can access the sales system. I am working on a feature to write reports for a certain area of the system. For this, …

Member Avatar for calcop
0
150
Member Avatar for santhanalakshmi

Hi, I want to add one "Save Button" on web page.I am working on ".cgi" program and using "sql server 2000" database.Datas are retrieving from the database and displayed as on html page(datas are student records (i.e) marks,grade etc).In that displayed page,i want to add "save button".By clicking save,it should …

Member Avatar for KevinADC
0
93

The End.