RE: Ignoring enter/newline in forms

2005-06-05 Thread Hellman, Matthew
wow, that's some serious regex just to remove a leading character from a string. anyway, this is not a CGI issue per se. see if this helps: http://ppewww.ph.gla.ac.uk/%7eflavell/www/formquestion.html -Original Message- From: Shawn Smith [mailto:[EMAIL PROTECTED] Sent: Friday, June 03,

How to convert ([^]*) to ``$1''?

2005-06-05 Thread Zeng Nan
Hi, I'd like to convert a text file to tex. One thing I encounter is that there are lots of dialogues, and I want to transform to `` '' properly. I try to use s/([^]*)/``$1/gs but it doesn't work correctly. Any ideas? Regards, -- Zeng Nan Simple is Beautiful.

Re: How to convert ([^]*) to ``$1''?

2005-06-05 Thread Peter Scott
On Sun, 05 Jun 2005 12:30:34 +0200, Ing. Branislav Gerzo wrote: Zeng Nan [ZN], on Sunday, June 5, 2005 at 16:20 (+0800) contributed this to our collective wisdom: ZN I'd like to convert a text file to tex. One thing I encounter is that ZN there are lots of dialogues, and I want to transform

HOw to pass patterns as function argments?

2005-06-05 Thread Siegfried Heintze
I have a fragment of code (consisting of a while loop) that removes all the keywords in string and puts them at the end. I would like to extract this while loop into it's own function and have patterns as function arguments. What should I pass to the function? Strings? Strategy A: sub abc { my

Re: How to convert ([^]*) to ``$1''?

2005-06-05 Thread Zeng Nan
Thanks all. I have figured it out. I should have used `undef $/' at the beginning so that the whole file is treated as a string. -- Zeng Nan Simple is Beautiful. PGP Key: http://hobbit.homeunix.org pgpkkAaQGvqEE.pgp Description: PGP signature

why die; produce an error?

2005-06-05 Thread Ing. Branislav Gerzo
Hi all, I noticed strange behavior with die; Here is snippet: use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize-new(); $mech-agent_alias('Windows IE 6'); $mech-get( 'http://www.zoznam.sk' ); for my $link ( $mech-links() ) { print $link-url_abs, \n; } This

Re: Two Dimensional Array Problem

2005-06-05 Thread Wiggins d'Anconia
Always group reply so others can help and be helped, and to avoid getting accidentally ignored. Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post. - Sherm Pendley, Mac OS X list Aaron Huber wrote: On 6/3/05, Wiggins d'Anconia [EMAIL

no brownie point for spamassin or perl, Digest::SHA1 fails

2005-06-05 Thread BSUMRALLL
I did an error free up2date install of perl and was having the exact error I am having now. So I did a full binary install of the latest stable release of perl after uninstalling all spamassin dependant modules. Everything went on perfect with zero errors. I have a copy of the complete

one more thing

2005-06-05 Thread BSUMRALLL
both Digest::SHA1 and Digest::SHA2 are installed error free from a binary installation. Brad [EMAIL PROTECTED]

AoA for GD::Graph

2005-06-05 Thread ahuber
I am trying to build an array that can be used with GD::Graph to show the graphical representation of a MySQL query. This module only takes in an AoA like this: @data = ([1,2,3,4],[10,20,30,40]); # @arr[$x vals], [$y vals] It then takes that array and parses it into a graph like this: my

DBI + XML::Twig conflict (?)

2005-06-05 Thread Peter Rabbitson
I have a strange problem where a database handle is being destroyed for no apparent reason. My initial idea was to parse some xml, and translate it into a database. Deleting line after line of code I came up with this short meaningles program which exhibits the same behavior as its real-life

Search Pattern Question: What does # mean?

2005-06-05 Thread Siegfried Heintze
I'm using regular expressions to parse job titles and I had C# in a pattern and it was not working correctly. I corrected the problem with C\#. What does C# match? Thanks, Sieg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Is there a policy regarding subscrjbers with challenge/respo nse mail filters?

2005-06-05 Thread Daniel Kasak
Thomas Bätzler wrote: Does this get on other people's nerves, too: There's no policy AFAIK, but I agree that it would be great to have one. Possibly we could also unsubscribe people who put a vacation message on their account? It's always great to reply to someone's post and then get swamped

Re: AoA for GD::Graph

2005-06-05 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: I am trying to build an array that can be used with GD::Graph to show the graphical representation of a MySQL query. This module only takes in an AoA like this: @data = ([1,2,3,4],[10,20,30,40]); # @arr[$x vals], [$y vals] It then takes that array and parses it

Re: DBI + XML::Twig conflict (?)

2005-06-05 Thread Wiggins d'Anconia
Please don't cross post. Peter Rabbitson wrote: I have a strange problem where a database handle is being destroyed for no apparent reason. My initial idea was to parse some xml, and translate it into a database. Deleting line after line of code I came up with this short meaningles program

Re: DBI + XML::Twig conflict (?)

2005-06-05 Thread Peter Rabbitson
If I run the real program I end up stuffing about 480 out of roughly 510 products into a designated table and then the handle goes out to lunch with the same error message. What's the error message? Ups... I guess I missed that: ~$ ./test /dev/null Issuing rollback() for database

Re: DBI + XML::Twig conflict (?)

2005-06-05 Thread Wiggins d'Anconia
Peter Rabbitson wrote: If I run the real program I end up stuffing about 480 out of roughly 510 products into a designated table and then the handle goes out to lunch with the same error message. What's the error message? Ups... I guess I missed that: ~$ ./test /dev/null Issuing

perl GUI with out X ?

2005-06-05 Thread Michael Gale
Hello, Is there a way to write a perl GUI app with out having to run X ? Michael -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

A question about Win32::OLE. Really need you help!!!

2005-06-05 Thread J aperlh
A question about Win32::OLE. Really need you help!!! There is a standalone executable written in C/C++. What I am going to do is to write a perl script to call several functions available in this executable. From the following article, I thought the job is very easy. #10 - Win32::OLE

Re: DBI + XML::Twig conflict (?)

2005-06-05 Thread Peter Rabbitson
Thank you. No guarantees, but try setting 'InactiveDestroy' when you create the DB handle. XML::Twig uses a fork/exec call in 'parseurl' to retrieve the URL in one process and to parse the XML in the other. When the retrieval is complete one of the processes closes with an 'exit'. I think