2,977 Topics
![]() | |
Hi all, I'm beginner in Perl. I need to concatenate three values in the date format like, [code] $fullDate = $ARGV[3] . "/" . $ARGV[4] . "/" . $ARGV[5];[/code] But while concatenating, it is performing division on values. I have tried '.',':','-'. But its not working. Pls suggest me how … | |
I am loading a perl script that creates 2 arrays - 1 with a list of id's for classes offered and another with # of students already registered for each class (from a flat file that already exists) How can I reference the array values generated by the cgi scipt … | |
I have been looking for the some best technology that can used for Scrapping. Currenly my project uses Perl:LWP with regex to scrape info. I find a lot of tools running under different platform. E.g. Perl HTML XML Parsers, Java, Jscript, .NET. and many many modules like Hpricot, ,Mechanize, Ruby, … | |
I'm having problems writing records to an output file. When I do it in Textpad running on Windows, the output file looks fine. When, however, I copy the script to a Linux machine and use the exact same code, it appends a ^M character on each line written to the … | |
Hello, I am working on a project and I need to go to multiple news web sites and get articles pertaining to stock numbers. My ideas so far have been to download an RSS file from somewhere like Google Finance, and then extract the links out of there, follow them, … | |
I have IIS installed on XP Pro and am trying to learn Perl. I cannot get the scripts to work right, though. All of the syntax is checking out to be okay. I'm not sure what the problem is. | |
Hi Everyone, I am in a class on Biocomputing and we have a project due VERY soon. In part of it, we have to write a script and this is what we have to do: It can execute in the shell, python, or perl. The script should do the following … | |
Hi all, I have written a query like this. [code] $dbh= DBI->connect("dbi:mysql:dbname=$database;host=$hostname", "$username", "$password"); $statement = "SELECT patient_intime from $table_name where patient_intime=$ARGV[0])"; [/code] I want all the "patient_intime" values to be retreived, where there are other columns(fields) also. Pls suggest me how to proceed. Thanks in advance. Padmaja T N. | |
Hi, could any one help to debug this code plz thanks in advance #!/usr/local/bin/perl # load_bulkups.pl - create bulkup orders from a csv file # the input file should be in the comma seperated, in the # following format: # site,vendor,sku(Stock Keeping Unit),forecast,qoh(Quantity on Hand),qoo(Quantiy on Order),buying_multiple,outl,demand,order # if an … | |
whats up everybody? havent been on daniweb in a while. self-motivation like whut....until now. anyways ive got this script that makes an html form with 19 or so fields. its supposed to put the form info into a file (mediaRequest_log.txt). it gets this information by way of [code=perl] # get … | |
Hello everyone. I suppose I should start off with an introduction. I'm new to the whole C++ environment. I've done some scripting in perl, but just started with C++. I've picked up a few books and looked around on the web now for about 5 months. Finally came across this … | |
Hi, I'm having trouble to get the value of a certain tag which seems have a complicated data structure. Object: To pull data from a data and print it out to a report file. Problem: Getting the data from array of hash and pass it to a hash of hash … | |
I'm hoping this is the appropriate forum for my situation. I'm trying to populate a form on a .NET server with data from a form on a different server. Using SOAP::Lite we've managed to get this code working: [code] use strict; use warnings; use SOAP::Lite +trace => 'debug'; my $name='Trudge'; … | |
I have an html form containing the usual text boxes and a checkbox. When submitted to the server the user receives both an email acknowledgement as well as an html "thank you" page, both delivered by a perl cgi script. Depending on whether the checkbox is checked or not on … | |
I'm running XP Pro with IIS installed. I'm trying to learn Perl, and need to ensure that IIS is configured to run .cgi scripts. Anyone know how I would go about doing this? | |
I've been programming for a few years now, mostly in VB and Perl. I'm just getting into using databases(Access) with VB .Net and find it interesting. | |
I think I'm missing something really minor here, but after reading over both the html & the perl several times, I'm not catching anything wrong. Why isn't this page giving the proper output? [code] <html> <head><title>Jackson Elementary School</title><basefont size=5></head> <body> Click here.<br /> <a href="http://localhost/cgi-bin/chap02/c02ex2.cgi" /><img src="jackson.gif"></a><br /><br /> <a … | |
Hi, I've been programming for, err, awhile now. My experience has been working at Amdahl where I was writing mainframe microcode in IBM assembler and C, and then writing an architectural emulator written in C. I then worked at IBM writing mainframe microcode in IBM assembler. Lastly, I was working … | |
I've just started working with Perl. When I try and run a check or anything on a script at the MSDOS prompt, it tells me " 'perl' is not recognized as an internal or external command, operable program or batch file. The CGI files show the right icon beside them, … | |
Hi I am fairly new to the IT industry and need help writing a start-up script for an application server (OC4J). It does not matter in what language is the script written (Perl,Korn..) Or if some1 can atleast get me a headstart as to how do I go about writing … | |
I want to hide the caret in the RichTextBox control and do that with the win api function HideCaret(),but it doesn't work.The cursor is still visible and blinking.Where i should call the function.I tried in the Enter event of the control but doesn't work again.As far as i know i … | |
Dear all , I am the beginer of the perl . I have a problem and I need the solution urgently . Actaully I have text file below. EMARK 3 PARAMETER FILE 1 : PROTEIN_REP.PARAM REMARK 3 PARAMETER FILE 2 : LIG.PARAM REMARK 3 PARAMETER FILE 3 : NULL REMARK … | |
I keep getting the following errors everytime I call my `get_prevday` subroutine which is at the bottom. I have initialized all the variables in the program that I can think of. Please help!!: "Use of uninitialized value in array element at Thickness_vs5.cgi line 542. <FILE> line 71. " "Use of … | |
Hi all, I have been struggling with time/date in perl for several hours now and for some reason i get a quirky error. I have an array called "date" 44 elements in length and "time" 44 elements in length. I created this code to convert UTC to localtime (Alaska). But … | |
Hi all, I am in a situation where I don't know much PERL/CGI, but am frantically reading through the learn Perl/learnCGI in 24 hour books. I just got done programing in dbase for some climatology work and now have to switch gears quickly. My mission: to read in a (comma-delimited)web … | |
I am trying to activate a submit button.I have the submit button on the page with a hidden field but am told that I need to attach a pearl or cgi script.Can anyone help me out please. john | |
I am trying to program a work-related report system. The reports are generated in php, and I have been requested to have the results sent via email to the individual who needs to review them. (That is, one person generates the reports to look at via an external program, but … | |
Has this feature been removed? When I amble back to '[URL="http://www.daniweb.com/forums/search.php?"]old familiar[/URL]' (which takes more work than I would like), it doesn't work as I expect. That is, if I specify to search for "environment" in Geeks Lounge, I get results in forums [URL="http://www.daniweb.com/forums/search280691.html"]such as[/URL] [list][*]Windows NT / 2000 / … | |
Could you please explain how this works. [code=PERL] while (m`(?=.)((?:"((?:""|[^"]+)*)")?([^,]*))(,?)`sg) { print "1=$1 2=$2 3=$3 4=$4 \n"; } [/code] INPUT LINE APPLE,MANGO,"BANNA" OUTPUT 1=APPLE 2= 3=APPLE 4=, 1=MANGO 2= 3=MANGO 4=, 1="BANNA" 2=BANNA 3= 4= Logic is not catching to my little brain, pls help. Thanks. | |
hi, i want to integrate VB.NET with command window. in fact, i want the interface(built on VB.NET) to open the command window and it should automatically change the path to C:\Perl\eg and then it has to execute automatically the file what i specified. for this i already used the code … | |
![]() | I'm learning perl now. By using whereis command, I found out where perl command is. $whereis perl /usr/bin/perl I make a program and tried to execute it. But I got error message like this one. $perl yahoo_search.pl #!/usr/bin/perl -bash: !/usr/bin/perl: event not found Can somebody tell me what I should … |
Why do they make computers harder to use and program than they need to be? Here are some examples: - Why do most spreadsheets and programming languages do trigonometric functions in radians, when most people use degrees? - Why do most of the C-based languages (including Java, JavaScript, and Perl) … | |
Hi all, this forum seems to have sparse traffic, so if you stumble upon this thread I want to request that you please give your opinion on the following question. I am currently a rails developer and I was looking to add another language to my CV, I just wanted … | |
Hi myself Anirban Adhikary from KOLKATA, INDIA. I am 25 years old a B.S. degree holder major in electronics & telecommunication.Presently I am working as a UNIX administrator on RHEL 4 and CENTOS platform. Though I am working as a administrator but my presently I have to do a lot … | |
I want to make: when i click a button after I've given some input it checks & if successful it opens a new window/page i.e I want to create a link....till now I've done [CODE] import javax.swing.JOptionPane; public class inputwindow { /** * @param args */ public static void main(String[] … | |
Hello, I want to learn perl and I have installed Apache 2.0.53, Perl 5.8.8 and MySql 4.1 I have configured apache for perl and successfully running the "Hello World" program. I want to know, how to configure perl for mysql. Your help is appreciated. Thanx | |
for i in table1 table2 table3 table4 do perl -ne 's/ *\|/\|/g; print' ${AHS_DATA}/${i} > ./${i}.dat done what does `perl -ne 's/ *\|/\|/g; print' ${AHS_DATA}/${i} > ./${i}.dat` mean? | |
Hello, everyone. This is the first time I encounter Ruby Programming Language. Can anyone please explain briefly what is Ruby. From the information that I read in the Internet, Ruby is a fully object oriented language with combination of Perl and Small Talk. Anyhow, I m still confuse of what … | |
I need some advice and/or help. I placed a form on a clients website and it utilizes a perl mail form script to send the submitted email to the clients optonline (cable) email address. The form works great, however, now the client is telling me that when he opens the … | |
Does anyone have a good method for formatting a numeric value as an American currency value in Perl? I'm not finding anything in my searches. Thank you for your consideration. | |
Is someone messing with a system css or xsl page? Yesterday, I came onto the site, and after a few minutes, the coffeehouse messed up. The normal banners weren't working; all possible extended links in the dropdown segment up top were showing, and as far as I can tell all … | |
Hi, I am new in Perl and need abit of help on the usage of file handler. I was trying to write a line into a file with file handler ID "oFile2_$macro", but it does NOT work with the following Error : String found where operator expected at /home/wongz/bin/pt/grab_clock_group.new.pl line … | |
Hi my name is Marc and I'm from Germany ... so my english is not the best :S But I hope to improve it fast :) I'm 21 years old and study "Wirtschaftsinformatik" in Stuttgart. I worked part-time at Robert Bosch and have to try some things there like programming … | |
[code=perl] if ( $#ARGV < 0 ) { die "Usage: tdbFormatBulkassets.pl date file_to_be_parsed loan mloan"; } $input_file1 = "$ARGV[0]"; $input_file2 = "$ARGV[1]"; $input_file3 = "$ARGV[2]"; $input_file4 = "$ARGV[3]"; $output_file1 = "$ARGV[4]"; $output_file2 = "$ARGV[5]"; $output_file3 = "$ARGV[6]"; $output_file4 = "$ARGV[7]"; $output_file5 = "$ARGV[8]"; $count = 0; $hedge_entity = 70; $hedge_request_id … | |
I have formatted a PC today, Its a windows XP Pro PC with Zone Alarm Antivirus and Firewall installed, also iNorton Goback system restore installed. When i shutdown PC, it says.. Saving setttings.. Logging off... Shutting down... and atlast it just hangs in the Final Blue screen instead of shutdown... … | |
Hi, Someone put together a small perl script for me that uses day and time to determine which of two images to display (open.gif or closed.gif). I need to modify the script to also include a hyperlink to open.html or closed.html so that if the open image is displayed it … | |
hi this is manjunath new to cgi, i have some cgi code, now i want to implement the same in javascript or jsp, please help me to do this. or please explain me what this code is doing. here is the code: $c = 1; while(Allbase::FetchRow(\@d)) { $d[2] = substr($d[2],0,10); … | |
Hi all, i want to access elements of a text file columnwise just like accessing elements in a matrix. ex: a text file contains a matrix with the below strings. a apple + b book + c cat _ d dog _ ...........and so on. Now i want to access … | |
How to open HTML page in a browser with specific options selected in drop-down boxes? Hi Everybody, The task that I have is from Perl script to open HTML page in a browser with specific options selected in drop-down boxes and edit fields using POST method. The good example of … | |
I already configured the Tomcat to run CGI, following some steps from several tutorials, but I do not know what is happening that I cannot run any Perl CGI. [B]The browser just tries to download the code file, it is not showing the compiled output.[/B] I have this simple page … |
The End.