Re: Nested if and elsif and else

2010-04-14 Thread Shlomi Fish
On Wednesday 14 Apr 2010 02:35:50 Mimi Cafe wrote: I think this will work, but is it elegant.? If (condition){ if (nexted_condition){ do this. } Elsif (nexted_condition){ Do that... } else{ Do something else. } } else{

AW: Copy file from one server to another

2010-04-14 Thread Thomas Bätzler
Chris Coggins cacogg...@cox.net asked: I need to copy a small config file from one server to another. I'm generating the file on one server with a pretty complex script. I need to put that file on another server for immediate user access via html. I've tried just writing the file straight to

Re: Problem in installing ActivePerl 5.10 on Windows 7 with x64 chipset

2010-04-14 Thread Sisyphus
- Original Message - From: CHAN, KENNETH 1 [AG/7721] kenneth.1.c...@monsanto.com To: beginners@perl.org I tried to Google it but couldn't find a solution. Do you have any idea how to fix it and install ActivePerl properly? Thanks in advance. ===

AW: Perl get host's IP

2010-04-14 Thread Thomas Bätzler
pen...@nsbeta.info asked: Is there a general way to get linux OS's bound ip addresses? for example, the IP on eth0, eth1 etc. Thanks. http://search.cpan.org/~lds/IO-Interface-1.05/Interface.pm could be a good enough solution for you. I say good enough since it gives you all of the info that

Re: AW: Copy file from one server to another

2010-04-14 Thread Chris Coggins
Thomas Bätzler wrote: Chris Coggins cacogg...@cox.net asked: I need to copy a small config file from one server to another. I'm generating the file on one server with a pretty complex script. I need to put that file on another server for immediate user access via html. I've tried just

RE: Nested if and elsif and else

2010-04-14 Thread Mimi Cafe
Yes, the nested if and elsif and else makes the code difficult to read and I often get stuck trying to make sense of it all. For now, I will look to see if I can move some bit and pieces to subroutines to improve readability. Thanks guys Mimi -Original Message- From: Jim Gibson

Re: AW: Perl get host's IP

2010-04-14 Thread Peng YH
Thomas Bätzler: pen...@nsbeta.info asked: Is there a general way to get linux OS's bound ip addresses? for example, the IP on eth0, eth1 etc. Thanks. http://search.cpan.org/~lds/IO-Interface-1.05/Interface.pm could be a good enough solution for you. Thanks. Looks a good solution for my

Re: Incrementing letters in for loop

2010-04-14 Thread Shawn H Corey
C.DeRykus wrote: And, here's the doozy for me as I tried remembering: If the final value specified is not in the sequence that the magical increment would produce, the sequence continues until the next value is longer than the final value specified.

Re: AW: Copy file from one server to another

2010-04-14 Thread Brandon McCaig
On Wed, Apr 14, 2010 at 5:40 AM, Chris Coggins cacogg...@cox.net wrote: Data supplied randomly throughout the day from one company division is processed only on one server in the company. One of the files the processing script generates is an xml file that is needed to supply current data to

Re: Copy file from one server to another

2010-04-14 Thread Steve Bertrand
On 2010.04.13 02:46, Chris Coggins wrote: I need to copy a small config file from one server to another. I'm generating the file on one server with a pretty complex script. I need to put that file on another server for immediate user access via html. I've tried just writing the file straight

Re: Nested if and elsif and else

2010-04-14 Thread Steve Bertrand
On 2010.04.13 23:17, Kenneth Wolcott wrote: Hi; On Tue, Apr 13, 2010 at 19:54, Uri Guttman u...@stemsystems.com wrote: JG == Jim Gibson jimsgib...@gmail.com writes: JG On 4/13/10 Tue Apr 13, 2010 4:35 PM, Mimi Cafe mimic...@googlemail.com JG scribbled: I think this will work, but

RE: Problem in installing ActivePerl 5.10 on Windows 7 with x64 chipset

2010-04-14 Thread CHAN, KENNETH 1 [AG/7721]
Not really - seems like some sort of permissions issue. Someone on the ActivePerl mailing list might have a better idea. I use the x64 build of ActivePerl 5.10.1 (build 1007) - but I installed from the .zip package (instead of the msi installer). If you think that could be worth a try just

Re: Nested if and elsif and else

2010-04-14 Thread Raymond Wan
Hi Mimi, Mimi Cafe wrote: I think this will work, but is it elegant.? If (condition){ if (nexted_condition){ As others have noted, it will work. But as for elegance, this is a very subjective opinion and contrary to what recent comments have said, my take on it is that it depends on

RE: Problem in installing ActivePerl 5.10 on Windows 7 with x64 chipset

2010-04-14 Thread Bob McConnell
From: Sisyphus - Original Message - From: CHAN, KENNETH I tried to Google it but couldn't find a solution. Do you have any idea how to fix it and install ActivePerl properly? Thanks in advance. === Not really - seems like some sort of

how to create a hash on the fly

2010-04-14 Thread raphael()
Hello People, I am stuck on a minor problem. How can I create a hash? Data is as follow -- DATA -- # abc -- this_should_be_hash_name {space} random_name_or_number date other_things_1 other_things_2 {space} random_name_or_number date other_things_1 other_things_2 # xyz

Re: how to create a hash on the fly

2010-04-14 Thread Alexey Salmin
On Thu, Apr 15, 2010 at 11:59 AM, raphael() raphael.j...@gmail.com wrote: Hello People, I am stuck on a minor problem. How can I create a hash? Data is as follow -- DATA -- # abc      -- this_should_be_hash_name {space} random_name_or_number  date  other_things_1

Re: how to create a hash on the fly

2010-04-14 Thread Uri Guttman
r == raphael() raphael.j...@gmail.com writes: r # abc -- this_should_be_hash_name r {space} random_name_or_number date other_things_1 other_things_2 r {space} random_name_or_number date other_things_1 other_things_2 r How can I create a hash by the name that matches r