Re: cgi and perl database interaction

2009-12-02 Thread Paweł Prędki
Greg Jetter pisze: On Tuesday 01 December 2009 2:52:38 pm Paweł Prędki wrote: Hello, I have a website that uses a php engine for news generation and, basically, most of the other pages. It uses a MySQL database to store the majority of the page contents (i.e. news). However, I've written

ERROR: malformed header

2009-12-02 Thread Raheel Hassan
HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl, referer:

Re: ERROR: malformed header

2009-12-02 Thread Rene Schickbauer
Raheel Hassan wrote: HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl,

Need to process a XML file through Perl.

2009-12-02 Thread Parag Kalra
Hello All, This for the first time I am interacting with a XML file through Perl. As a matter of fact I am using any XML file the first time so I may go here there with the technical terms of the XML file. I apologize for that. Following is the structure of my XML file root start_element

Re: Need to process a XML file through Perl.

2009-12-02 Thread Philip Potter
2009/12/2 Parag Kalra paragka...@gmail.com: Currently I am planning to process the above requirement using simple Perl regex. But I feel it can be made simpler using any of the available modules. So I have following questions: 1.       Which are the best available XML modules for Perl? 2.    

Re: PRINT LAST ENTRY IN A FILE

2009-12-02 Thread Dr.Ruud
matt wrote: my @hits = grep /$input/, DATA; quotemeta: my @hits = grep /\Q$input/, DATA; -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

ERROR: malformed header

2009-12-02 Thread Raheel Hassan
HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl, referer:

why don't if (*.foo) and while(*foo.) work together??

2009-12-02 Thread Mark_Galeck
Hello, the while loop here still returns all the matching files. Why?? It seems to me clear, from the discussion in the Camel book, that *.foo should all the files when called successively, therefore, here, the first call inside if () should return one file, and the rest of the calls inside

Re: ERROR: malformed header

2009-12-02 Thread Rene Schickbauer
Raheel Hassan wrote: HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl,

Re: ERROR: malformed header

2009-12-02 Thread Dermot
2009/12/2 Rene Schickbauer rene.schickba...@gmail.com: Raheel Hassan wrote: HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script.

About the uninstall the new perl version

2009-12-02 Thread Majian
Hi, guys: I have a problem about the perl uninstall , my laptop's system is CentOS 5.3 x86_64, and the default perl version is perl -5.8.8; I installed the newer version called perl -5.11.1by the tar.gz package , but now I don't want it ~ In other worlds , I want to uninstall it

Re: About the uninstall the new perl version

2009-12-02 Thread Dermot
2009/12/2 Majian jian...@gmail.com: Hi, guys:  I have a problem about the perl uninstall , my laptop's system is CentOS 5.3 x86_64, and the default perl version is perl -5.8.8;     I installed the newer version called perl -5.11.1by the tar.gz package , but now I don't want it ~        In

ERROR Details of : malformed header

2009-12-02 Thread Raheel Hassan
HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl, referer:

directory exists

2009-12-02 Thread Kaushal Shriyan
Hi, I have binary files 20080630 under a particular directory (/mnt/data1/adserver/BinaryAdLogs) and there is a directory by the name 2008_6_30 in /mnt/data1/adserver/DailyLogs Basically i need to check the directory whether it exists in /mnt/data1/adserver/DailyLogs for all the binary files

Re: ERROR Details of : malformed header

2009-12-02 Thread Rene Schickbauer
Raheel Hassan wrote: * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl, referer: http://localhost/index.pl*; Here are more details for the core printHTML, HEAD, Ah, yeah. You are missing the HTTP headers, try this before printing the HTML:

Re: directory exists

2009-12-02 Thread Rene Schickbauer
Kaushal Shriyan wrote: Hi, I have binary files 20080630 under a particular directory (/mnt/data1/adserver/BinaryAdLogs) and there is a directory by the name 2008_6_30 in /mnt/data1/adserver/DailyLogs Basically i need to check the directory whether it exists in /mnt/data1/adserver/DailyLogs for

REGEX first occurence

2009-12-02 Thread Jackie Jackie
I have a repeated occurrence of a word that I want to replace by another word. _Data_ fish fish fish fish output fish/red fish fish/blue fish fish/yellow fish fish/red fish I did not find a solution. Please help me. __ The

Re: About the uninstall the new perl version

2009-12-02 Thread Shawn H Corey
Dermot wrote: If this is a source installation and you kept the source, I think you can do `make uninstall` from source the directory. If you uninstall perl, you are likely not to have any when done. Try installing the version you want 5.8 or 5.10. Doing so should overwrite the current one.

Re: speed test

2009-12-02 Thread Raymond Wan
Hi, Jim Gibson wrote: At 9:58 AM +0800 12/2/09, =?GB2312?B?T3JjaGlkIEZhaXJ5ICjAvLuoz8nX0yk=?= wrote: You should also consider the speed of the programmer. I can write a Perl program in less than half the time it would take me to write the same program in C, C++, or Java. You will have to

Re: why don't if (*.foo) and while(*foo.) work together??

2009-12-02 Thread Randal L. Schwartz
Mark == Mark Galeck mark_galeck_spam_mag...@yahoo.com writes: Mark Hello, the while loop here still returns all the matching files. Mark Why?? It seems to me clear, from the discussion in the Camel book, Mark that *.foo should all the files when called successively, therefore, Mark here, the

Re: do something after time expired

2009-12-02 Thread Jay Savage
On Tue, Dec 1, 2009 at 3:36 PM, David Schmidt zivildie...@gmail.com wrote: [snip] The actual problem is: All the visitors have to be put in one of 4 groups. So for the first 10 minutes visitors go to group #1, next 10 minutes to group #2, ...when all 4 groups have been treated I want to

Simplifying a code snip

2009-12-02 Thread Steve Bertrand
Hi all, I often come across situations where I need to create method names based on an iterator of some sort, and I'm looking for feedback on whether (ie. how) I can simplify the code, make it easier to read and make it more scalable. The ALL_CAPS are method names that are dynamically generated

Re: Simplifying a code snip

2009-12-02 Thread Uri Guttman
SB == Steve Bertrand st...@ibctech.ca writes: SB Hi all, SB I often come across situations where I need to create method names based SB on an iterator of some sort, and I'm looking for feedback on whether SB (ie. how) I can simplify the code, make it easier to read and make it SB more

I LOVE HASH(ES)!!! *:-D

2009-12-02 Thread Aimee Cardenas
Hi, All! No questions. Just expressing my fondness of Perl Hashes. :-D Have a perly day! :-D Aimee Cardenas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: REGEX first occurence

2009-12-02 Thread Shlomi Fish
On Wednesday 02 Dec 2009 16:03:53 Jackie Jackie wrote: I have a repeated occurrence of a word that I want to replace by another word. _Data_ fish fish fish fish output fish/red fish fish/blue fish fish/yellow fish fish/red fish I did not find a solution. Please help me. If I

Re: I LOVE HASH(ES)!!! *:-D

2009-12-02 Thread Steve Bertrand
Aimee Cardenas wrote: Hi, All! No questions. Just expressing my fondness of Perl Hashes. :-D Have a perly day! :-D Aimee, You'd *LOVE* dispatch tables then... ...it's like HASH with extra potential ;) Steve -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: I LOVE HASH(ES)!!! *:-D

2009-12-02 Thread aimeec
awesome... I'll have to check that out.  Thanks!  :-) Aimee - Original Message - From: Steve Bertrand st...@ibctech.ca Date: Wednesday, December 2, 2009 7:42 pm Subject: Re: I LOVE HASH(ES)!!!  *:-D To: Aimee Cardenas aim...@sfbrgenetics.org Cc: Perl Beginners beginners@perl.org

Re: I LOVE HASH(ES)!!! *:-D

2009-12-02 Thread Anant Gupta
I second Aimee. Hashes are awesome. On Thu, Dec 3, 2009 at 9:32 AM, aim...@sfbrgenetics.org wrote: awesome... I'll have to check that out. Thanks! :-) Aimee - Original Message - From: Steve Bertrand st...@ibctech.ca Date: Wednesday, December 2, 2009 7:42 pm Subject: Re: I