Re: select case or switch statement

2005-06-12 Thread Omega -1911
I am still trying to grasp using case statements...Since I am new to this, I had a question as to the speed of using CASE. I currently have a script that has 91 if/elsif/else statements in total. Will switching to using CASE improve the execution of the script? On 6/11/05, Chris Devers <[EMAIL PRO

RE: select case or switch statement

2005-06-12 Thread Charles K. Clarkson
Omega -1911 wrote: : I am still trying to grasp using case statements... Since I am : new to this, I had a question as to the speed of using CASE. I : currently have a script that has 91 if/elsif/else statements in : total. Will switching to using CASE improve the execut

Best practice when using data from external files

2005-06-12 Thread Dale
Hi folks, I'm looking for some advice on the best practice when using external files to contain data. I work in a contact centre and have created a web based stats viewer for my team (it's very simple, just allows you to pick a date range and shows you your stats and the team average but als

[ANN] Have fun programming with your kids

2005-06-12 Thread ducasse
Hi If you are a parent, an educator or a programmer having kids this is for you! After 4 years of work, my new book "Squeak: Learn programming with Robots" will be out soon. http://smallwiki.unibe.ch/botsinc/ http://www.amazon.com/exec/obidos/tg/detail/-/1590594916/ qid=1117218524/sr=1-1/ref=sr

equivalent of break command?

2005-06-12 Thread Christopher Spears
I'm trying to write a perl script that automates g++. There is an if statement in the script that basically works like this: if there are no arguments { print an error message break (end the program) } Is there an equivalent of break in perl? What should I be using instead? "I'm the las

RE: equivalent of break command?

2005-06-12 Thread Charles K. Clarkson
Christopher Spears wrote: : : Is there an equivalent of break in perl? What should : I be using instead? exit; perldoc -f "exit" HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

What does this error message mean?

2005-06-12 Thread Christopher Spears
I am trying to update a script I wrote to automate g++. Here is an excerpt: #!/bin/perl -w use strict; my $number_of_args = @ARGV; open STDERR, ">./caught_errors" or die "Can't create caught_errors: $!"; if ($number_of_args == 0) { print "Not enough arguments!\n"; } foreach (my $i = 0;

Re: What does this error message mean?

2005-06-12 Thread Peter Rabbitson
>print "g++ $ARGV[i] \n"; > Argument "i" isn't numeric in array element at > ./cedit01 line 61. It is exactly what it says - the string 'i' is not numeric and you are using it as an @ARGV index. Perhaps you meant $ARGV[$i]. Furthermore the whole c-loop construct is not very appropriate as p

Re: What does this error message mean?

2005-06-12 Thread FreeFall
On Sun, 12 Jun 2005 11:49:37 -0700 (PDT) Christopher Spears <[EMAIL PROTECTED]> wrote: > I am trying to update a script I wrote to automate > g++. Here is an excerpt: > > #!/bin/perl -w > use strict; > > my $number_of_args = @ARGV; > > open STDERR, ">./caught_errors" or die "Can't create > ca