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, wrote: > awesome... I'll have to check that out. Thanks! :-) > > Aimee > > > > - Original Message - > From: Steve Bertrand > Date: Wednesday, December 2, 2009 7:42 pm > Subject: Re: I LOVE HASH(ES)!!! *<:-D > To: Aim

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 Date: Wednesday, December 2, 2009 7:42 pm Subject: Re: I LOVE HASH(ES)!!!  *<:-D To: Aimee Cardenas Cc: Perl Beginners > Aimee Cardenas wrote: > > Hi, All! > > > > No questions.  J

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: 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 h

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: Simplifying a code snip

2009-12-02 Thread Uri Guttman
> "SB" == Steve Bertrand 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 scala

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 e

Re: do something after time expired

2009-12-02 Thread Jay Savage
On Tue, Dec 1, 2009 at 3:36 PM, David Schmidt 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 calculate the new > "o

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

2009-12-02 Thread Randal L. Schwartz
> "Mark" == Mark Galeck 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 first call inside if (

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 i

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.

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 n

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

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 > print"", "", Ah, yeah. You are missing the HTTP headers, try this before printing the HTML: p

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 loca

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: http://localhos

Re: About the uninstall the new perl version

2009-12-02 Thread Dermot
2009/12/2 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 wo

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 fr

Re: ERROR: malformed header

2009-12-02 Thread Dermot
2009/12/2 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 head

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, r

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 whi

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: http://localhos

Re: PRINT LAST ENTRY IN A FILE

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

Re: Need to process a XML file through Perl.

2009-12-02 Thread Philip Potter
2009/12/2 Parag Kalra : > 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.       Out of the

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 1 MyChild 2 MyChild