Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Perl


Deparsing  

Hi all, I have a set of modules that constitute a build system (something between make and cons, though closer to make but in perl). To speed up things I do a bit a caching and even if the result ... Continue Reading
Views : 66
Monday 26th of November 2012

Multiple input lines  

How can I enter in multiple input lines to an array? Example: Enter your mailing address: 7660 Eyespy Court Clinton, Mississippi 32322 When I try to do this perl just sits and waits for Ctrl-D or Ctrl-C and quits my ... Continue Reading
Views : 63
Monday 26th of November 2012

Perl B:Bytecode anyone   

Hi, I've been trying to compile perl scripts into bytecode. Now, from what I understand I can use either perlcc -B script.pl or perl -MO=bytecode script.pl to do this (whats the difference between these two methods anyway ?). If I ... Continue Reading
Views : 90
Monday 26th of November 2012

Help on cgi/perl programs to port, view and edit reports  

Hi, I'm trying to write a cgi/perl programs to post a report like the following format in which the the user has to feed the values(nos) in the boxes under % Done Qual Rel. Stab P1 p2 P3.... and boxes ... Continue Reading
Views : 168
Monday 26th of November 2012

Kill and Signals  

Greetings, I need to handle signals to close some excel applications that my script open, when the script is killed by another process. My script is a little bit complex, but I wrote just two very small scripts to test ... Continue Reading
Views : 64
Monday 26th of November 2012

[comp.lang.perl.moderated] Welcome - read this first!  

Archive-Name: perl-faq/moderated/welcome Comp-lang-perl-moderated-archive-name: welcome Posting-Frequency: weekly Version: $Id: FAQ,v 1.49 2003/08/19 18:50:04 gbacon Exp $ URL: http://www.plover.com/clpm/FAQ Maintainer: Greg Bacon $PHXLESSgbacon@hiwaay.net$PHXGREAT Copyright-Notice: see Section 14... Continue Reading
Views : 187
Monday 26th of November 2012

Destroy cirular structure when last external ref goes  

Something I come accross often in Perl and for which I have no satisfactory solution is this.. I have a whole lot of Perl thingys (arrays, scalars, hashes) some of which are blessed all referencing each other in some complex ... Continue Reading
Views : 141
Monday 26th of November 2012

CGI error (need help)  

Hi, I have a problem with a CGI script (Perl) on a Win2000 server. The script is for sending E-cards and was written by Jason Maloney: http://www.aestheticsurgerycenter.co...ostcard1.shtml You can choose from some cards, add your own text and send it ... Continue Reading
Views : 108
Monday 26th of November 2012

ATTN Programmers: WE pay YOU $1.00 if you let us find you a job. jdg  

Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project. Programmers: Providing your Service is made easy through Colance. It is free to sign up with no monthly costs. riYvLCDTSX... Continue Reading
Views : 100
Monday 26th of November 2012

"perl -MCPAN -e shell" acts unexpectedly on MacOS X 10.3.1  

Hi. I am running MacOS X 10.3.1 (Panther) on a G4 iMac. I am installing some Perl modules using the CPAN shell, i.e., I issue the command # perl -MCPAN -e shell and then type commands to the cpan$PHXGREAT prompt. ... Continue Reading
Views : 136
Monday 26th of November 2012

Is there any way that I can change the image on the fly in cgi  

To change images, from what I know, I need to add event handler into the script (onMouseOver, onMouseOut ... etc), but I need to generate it on the fly. I will have this javascript in my cgi file which will ... Continue Reading
Views : 138
Monday 26th of November 2012

uninitialized value in pattern match  

Hi, I'm a beginner for perl/cgi programs and i tried to write a cgi script and when i ran it, i got the following error. But when i verified it from the book i typed exactly whatever it is there ... Continue Reading
Views : 195
Monday 26th of November 2012

open(data,' variable problem  

I am trying to open a text file in the same directory as the script is located to retrieve stored info. The text file is simply named: 216.1.1.2 This code will NOT work: $ip = '216.1.1.2'; open (data, $ip); @mailtext=$PHXLESSdata$PHXGREAT; ... Continue Reading
Views : 107
Monday 26th of November 2012

No program too tough. At Colance we have the best professionals. qZ  

Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project. Programmers: Providing your Service is made easy through Colance. It is free to sign up with no monthly costs. http://www.colance.co TcmX8xFWb3FWBpFHUuv4H... Continue Reading
Views : 190
Monday 26th of November 2012

scalar(%tied_hash)  

I'm creating a tied hash, and evaluating it in a scalar context. Like a standard hash, I'd like it to yield 0 if empty, and non-zero if populated. Ideally, I'd like it to yield the number of elements in the ... Continue Reading
Views : 145
Monday 26th of November 2012

de-references  

Perl-folks, Got a question that I hope someone can answer. I often use hashs like structures and they sometimes contain references to other hashs or arrays. My question is what is the best way to de-reference the internal hash or ... Continue Reading
Views : 130
Monday 26th of November 2012

Running a New Process  

Hello, there's something I'd like to understand... I want to connect to the MS SQL Server database, get some records, store them into the text file, send the file through VPN connection and then send the email message about the ... Continue Reading
Views : 66
Monday 26th of November 2012

Complie PERL Solaris 9 64-bit problems  

Here is what I get: gcc -L/usr/local/lib -o miniperl \ miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc ld: fatal: file miniperlmain.o: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to miniperl collect2: ld returned 1 ... Continue Reading
Views : 275
Monday 26th of November 2012

Why Time::HiRes on Windows is actually Time::LowRes and how to improve it  

On MS Windows (any, from Windows 95 to Windows XP) Time::HiRes module is not so precise as one could expect (at least, as I expected). Trying to measure time intervals as long as a couple of milliseconds (but definitely longer ... Continue Reading
Views : 39
Monday 26th of November 2012

Math::Pari test fail on Compaq OSF1 5.1b  

Hi, I'm having problems to successfully execute the test scripts on a Compaq host ( OSF1 tr51bdev V5.1 2650 alpha ). Almost all tests end up with the following error message "PARI: *** Invalid arguments to divll. at test_eng/Testout.pm line ... Continue Reading
Views : 33
Monday 26th of November 2012

DBI ODBC  

I have a small perl script that inserts data from a tab file to an Access database. my $sth = $dbh-$PHXGREATprepare($PHXLESS$PHXLESSSQL); INSERT INTO Notes ("Account Number", "NUM", "DESC", "UID", "NOTES") VALUES(?,?,?,?,?) SQL ... Continue Reading
Views : 67
Monday 26th of November 2012

GD::Graph::Lines ... Controling some behavior...  

I have a sample graph using GD::Graph::Lines, it's a simple X-Y line graph ( www.bitmosphere.com/cgi-bin/graph.pl ) I want to change the color of the graph border, and the tick lines (vertical and horiziontal). I can't seem to find how to ... Continue Reading
Views : 36
Monday 26th of November 2012

[comp.lang.perl.moderated] Welcome - read this first!  

Archive-Name: perl-faq/moderated/welcome Comp-lang-perl-moderated-archive-name: welcome Posting-Frequency: weekly Version: $Id: FAQ,v 1.49 2003/08/19 18:50:04 gbacon Exp $ URL: http://www.plover.com/clpm/FAQ Maintainer: Greg Bacon $PHXLESSgbacon@hiwaay.net$PHXGREAT Copyright-Notice: see Section 14... Continue Reading
Views : 203
Monday 26th of November 2012

connecting to mysql through DBI problem  

Hello, I have a very interesting problem. I'm connecting to local mysql database using DBI. I can connect and do queries as ordinary user (username 'nick'), but when I connect as root (username 'root', of course :-) ), I get ... Continue Reading
Views : 119
Monday 26th of November 2012

Zip file processing without recompiling PHP  

I am trying to create an OsCommerce plugin that parses a number of files and adds them to the catalog. I need some method of transferring the files to be parsed to the server with OsC. Ideally, I would like ... Continue Reading
Views : 361
Monday 26th of November 2012

Sorting entries in a DBM hash by one of the variables  

Hi, I have a slight problem in that I want to list all the entries in a DBM file. I'm fine with sorting my the key, but I want to sort by one of the variables in the value - ... Continue Reading
Views : 68
Monday 26th of November 2012

processes in win32  

is there an equivalent to unixs' ps command in perl? i was writing some win32 scripts and i needed a listing of specific processes. i could perhaps grep through a list of running processes but how can i attain that ... Continue Reading
Views : 77
Monday 26th of November 2012

Read a html file, extract email addresses  

I have searched without success for a simple script that can read any text html file and extract the email addresses from it. I am not interested in spamming people. I play a sport that requires me to email people ... Continue Reading
Views : 363
Monday 26th of November 2012

Generating html tables on the fly  

I am trying to scavange a example script I found on the web. The aubroutine is below. Basically I want to extract data from a sql db then generate a table of values on the fly. The script below keeps ... Continue Reading
Views : 78
Monday 26th of November 2012

=windows-1252QCan=92t_locate_Getopt=2Epm_in_=40INC=  

Dear Experts, I have a perl program that using Getopt:Std module, when I try to run the GetOpt program, the following error returned: Can?t locate Getopt.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5 I am... Continue Reading
Views : 115
Monday 26th of November 2012