Re: Help using cgi

2011-04-14 Thread Abizer Lokhandwala
If you are using a Windows System, you can go into the Control Panel, click "Enable or Disable Windows Components" and select IIS. Depending on your version of Windows, you should either have IIS 6 / 7, probably IIS7 if you are using Windows 7 as well. After selecting it, let Windows Install it, th

Re: Oracle DBA's group mail ids'

2011-04-14 Thread Peter McLarty
It would depend on your level of expertise and if you are just wanting someone to do your work for you and not read manuals or if you need help with complex problems. ITToolbox has various lists for starting out and if you google you will find various advanced ones Cheers Peter On 13/04/201

Re: Oracle DBA's group mail ids'

2011-04-14 Thread Raveen du
Peter, Thanks for the response, i am a beginner level of DBA. I am looking for an help with beginer level of knoweldge. Can you please some group ids where i can get this ? regards, Raveendu On Wed, Apr 13, 2011 at 5:01 PM, Peter McLarty < peter.mcla...@pacificdbms.com.au> wrote: > It woul

Re: Alternative to goto

2011-04-14 Thread Shlomi Fish
Hi Uri and Peter, On Thursday 14 Apr 2011 09:15:35 Uri Guttman wrote: > > "PS" == Peter Scott writes: > PS> On Wed, 13 Apr 2011 21:57:53 -0700, Mariano Loza Coll wrote: > >> Like Owen, I've come across many a recommendation AGAINST using goto > >> in Perl. And (like Owen?), I have yet t

Re: Alternative to goto

2011-04-14 Thread Shawn H Corey
On 11-04-14 12:57 AM, Mariano Loza Coll wrote: I have yet to find one that explains clearly the reasons arguing against its use. It's a religious thing. It is far better to hide your gotos in a state machine than to expose them to light. Example of a state machine with hidden gotos: my $do

Re: Alternative to goto

2011-04-14 Thread Uri Guttman
> "SF" == Shlomi Fish writes: SF> On Thursday 14 Apr 2011 09:15:35 Uri Guttman wrote: >> > "PS" == Peter Scott writes: PS> Here is the definitive explanation: >> http://www.cs.utexas.edu/users/EWD/ PS> ewd02xx/EWD215.PDF . >> >> having heard about that article for many year

Re: Calling subroutines with the & sigil

2011-04-14 Thread sono-io
Thanks to both Peter Scott, and Brian Fraser (who wrote me off-list). Very informative. I'm cleaning up a very old script that uses the &subroutine construct and learning more Perl in the process. > If you're worried about the speed overhead of one vs the other then either > you are w

Re: Alternative to goto

2011-04-14 Thread Brandon McCaig
(Sorry, Uri, meant to reply to the list...) On Thu, Apr 14, 2011 at 10:47 AM, Uri Guttman wrote: > then you don't know how to code well in c. it may not be as > nice as perl for some flow control things but goto is never > needed in c either. i have seen it used and there are always > better ways

Re: Alternative to goto

2011-04-14 Thread Shawn H Corey
On 11-04-14 12:52 PM, Brandon McCaig wrote: I often use gotos in C for error handling within a function. If you're allocating resources and something later on fails then you usually want (or need) to clean up those resources before returning. I've seen a lot of people duplicate the same cleanup c

Re: Alternative to goto

2011-04-14 Thread Uri Guttman
> "BM" == Brandon McCaig writes: BM> On Thu, Apr 14, 2011 at 10:47 AM, Uri Guttman wrote: >> then you don't know how to code well in c. it may not be as >> nice as perl for some flow control things but goto is never >> needed in c either. i have seen it used and there are always >

Re: Calling subroutines with the & sigil

2011-04-14 Thread C.DeRykus
On Apr 13, 4:07 pm, sono...@fannullone.us wrote: > Hello, > >         I read somewhere that it's bad practice anymore to call a subroutine > like this: > > &subroutine(); > Normally yes but there are a few circumstances where you need the sigil. See: perldoc perlsub >         I've also read wh

Re: Alternative to goto

2011-04-14 Thread sono-io
On Apr 14, 2011, at 10:15 AM, Uri Guttman wrote: > goto just shouldn't be in your vocabulary. there is no reason for it at all > in any decent language, especially perl. I've been following this thread and I'm just curious. If goto is so bad, why did they add it to Perl? Marc -- To un

Re: Alternative to goto

2011-04-14 Thread Shawn H Corey
On 11-04-14 01:47 PM, sono...@fannullone.us wrote: On Apr 14, 2011, at 10:15 AM, Uri Guttman wrote: goto just shouldn't be in your vocabulary. there is no reason for it at all in any decent language, especially perl. I've been following this thread and I'm just curious. If goto is s

Re: Alternative to goto

2011-04-14 Thread Peter Scott
On Thu, 14 Apr 2011 14:05:54 +0300, Shlomi Fish wrote: > Hi Uri and Peter, >> > Regarding the "Goto statement considered harmful" myth, see what I wrote > about it here: "Myth" is generally used to descibe something widely thought to be true that is in fact false. The assertion that goto is ha

Re: Calling subroutines with the & sigil

2011-04-14 Thread Peter Scott
On Thu, 14 Apr 2011 08:49:45 -0700, sono-io wrote: > The only one I was concerned with was a sub called "if", Sounds like a great device for an obfuscated Perl contest entry. That's the only place I want to see it, though. >but it doesn't > look like it's a built-in function. How

Re: Alternative to goto

2011-04-14 Thread Shlomi Fish
Hi Uri, On Thursday 14 Apr 2011 17:47:02 Uri Guttman wrote: > > "SF" == Shlomi Fish writes: > SF> On Thursday 14 Apr 2011 09:15:35 Uri Guttman wrote: > >> > "PS" == Peter Scott writes: > PS> Here is the definitive explanation: > >> http://www.cs.utexas.edu/users/EWD/ PS> ewd02xx/

Re: Alternative to goto

2011-04-14 Thread Shawn H Corey
On 11-04-14 02:36 PM, Shlomi Fish wrote: > On Thursday 14 Apr 2011 17:47:02 Uri Guttman wrote: > then you don't know how to code well in c. Thanks for the compliment.;-) > it may not be as nice as perl > for some flow control things but goto is never needed in c either. Thanks for avoiding

Re: Alternative to goto

2011-04-14 Thread Brandon McCaig
On Thu, Apr 14, 2011 at 1:15 PM, Uri Guttman wrote: >> "BM" == Brandon McCaig writes: >  BM> I often use gotos in C for error handling within a function. If >  BM> you're allocating resources and something later on fails then you >  BM> usually want (or need) to clean up those resources befor

Re: [SOS]perl in arm-linux cross compile failure!

2011-04-14 Thread Paul Johnson
On Thu, Apr 14, 2011 at 11:32:13AM +0800, guo-qijiang wrote: > Hello, When I cross compile the Perl source(5.10.1) in linux. Cross-compiling perl is not easy. I would suggest trying at least the latest stable release, 5.12.3, and perhaps even the lastest version from git, which is reasonably st

Re: Alternative to goto

2011-04-14 Thread Rob Dixon
On 14/04/2011 19:36, Shlomi Fish wrote: > > I should note that in C "continue", "break", and a pre-mature "return" may > also be considered as pseudo-gotos. Indeed. Funtionally, Perl has many keywords that transfer control to a different place in the code (next, break, continue, return, if, elsif

Re: Alternative to goto

2011-04-14 Thread Uri Guttman
> "SF" == Shlomi Fish writes: SF> Well, some use cases for goto in C: SF> 1. Breaking out of more outer loop (as there is no "continue label;" or "break SF> label;" in C: SF> SF> for (i=0 ; i < len ; i++) SF> { SF> for (j = 0 SF> { SF> if (func(i, j)

Re: Alternative to goto

2011-04-14 Thread Uri Guttman
> "BM" == Brandon McCaig writes: BM> On Thu, Apr 14, 2011 at 1:15 PM, Uri Guttman wrote: >> that can still be done very cleanly without gotos. one technique is to >> collect all the resources into a structure as you initialize. at any >> point when it fails, you return to an outer f

Re: Regular expression to capitalize first letter of words in sentence

2011-04-14 Thread John Delacour
At 13:39 +0300 12/04/2011, Shlomit Afgin wrote: I need to write regular expression that will capitalize the first letter of each word in the string. Word should be word that her length is greater or equal to 3 letters exclude the words 'and' and 'the'. I tried: $string = lc($string); $string

Re: Alternative to goto

2011-04-14 Thread John Delacour
At 23:00 +0300 14/04/2011, Shlomi Fish wrote: In Perl, I don't encourage people using goto statements, and I did not find a use for them in Perl, yet. But I don't rule out that they have legitimate use in other languages... int alloc_stuff(struct_t * * ref) { Let's stick to Perl and stop bo

Re: Alternative to goto

2011-04-14 Thread Brandon McCaig
On Thu, Apr 14, 2011 at 3:11 PM, Brandon McCaig wrote: > catch: >    // Cleanup all allocated resources and ignore unallocated >    // ones (that is, no matter where in the function the goto is >    // called it should work properly and not crash the >    // application)... I forgot to mention th

format output from system command

2011-04-14 Thread jet speed
Hi, I need help in formatting ouput from system command, i could'nt figure out a way to format output from system command. appreciate your help with this, the details are below. hlis3 is file with list of clients hosta hostb hostc hostd The below program looks through each client and outputs t

Re: Alternative to goto

2011-04-14 Thread Uri Guttman
> "s" == sono-io writes: s> On Apr 14, 2011, at 10:15 AM, Uri Guttman wrote: >> goto just shouldn't be in your vocabulary. there is no reason for it at all in any decent language, especially perl. s>I've been following this thread and I'm just curious. If goto s>is so bad,

Re: Alternative to goto

2011-04-14 Thread Peter Scott
On Thu, 14 Apr 2011 20:44:57 +0100, Rob Dixon wrote: > [ Good arguments about goto ] > A final note, perldoc perlsyn says > > A loop's LABEL is not actually a valid target for a goto; it's just > the name of the loop. > > and I am left wondering what this means, as I have had no problem > wri

Re: Alternative to goto

2011-04-14 Thread Peter Scott
On Thu, 14 Apr 2011 10:47:17 -0700, sono-io wrote: > On Apr 14, 2011, at 10:15 AM, Uri Guttman wrote: > >> goto just shouldn't be in your vocabulary. there is no reason for it at >> all in any decent language, especially perl. > > I've been following this thread and I'm just curious. If g

Re: Regular expression to capitalize first letter of words in sentence

2011-04-14 Thread marcos rebelo
I agree completely with you, clean code is the best documentation. But in your snippet I have to say: The use of $& anywhere in a program imposes a considerable performance penalty on all regular expression matches. it would be better to avoid default/magic variables. I would consider this snippe

format output from system command

2011-04-14 Thread jet speed
Hi, I need help in formatting ouput from system command, i could'nt figure out a way to format output from system command. appreciate your help with this, the details are below. hlis3 is file with list of clients hosta hostb hostc hostd The below program looks through each client and outputs t