Re: Teaching Perl

2010-05-05 Thread Robert H
On 5/5/10 6:12 PM, in article 861vdqhuat@red.stonehenge.com, "Randal L. Schwartz" wrote: >> "Shlomi" == Shlomi Fish writes: > > Shlomi> Why do you need a version with a function that is specifically > Shlomi> called "doors"? What will this "doors" function do? Generally > Shlomi> funct

Re: Teaching Perl

2010-05-05 Thread Randal L. Schwartz
> "Shlomi" == Shlomi Fish writes: Shlomi> Why do you need a version with a function that is specifically Shlomi> called "doors"? What will this "doors" function do? Generally Shlomi> functions and methods should be called according to verbs and Shlomi> actions - not according to nouns. You

Re: Teaching Perl

2010-05-04 Thread Shlomi Fish
On Monday 03 May 2010 19:39:35 Samuel Williams wrote: > Dear Shlomi, > > Are you able to write a version that uses a function called "doors"? > I've already written two versions which I've posted to the list in a different post (and which I, and other people, can testify for their quality). The

Re: Teaching Perl

2010-05-03 Thread Samuel Williams
Dear Shlomi, Are you able to write a version that uses a function called "doors"? Kind regards, Samuel On 4/05/2010, at 3:01 AM, Shlomi Fish wrote: > Hi John, > > On Monday 03 May 2010 17:42:16 John W. Krahn wrote: >> Samuel Williams wrote: >>> Dear Friends, >> >> Hello, >> >>> It would also

Re: Teaching Perl

2010-05-03 Thread Samuel Williams
Dear John, Apparently (according to the people in irc.freenode.org#c) that initializer sets the whole array to zero. I queried this too, but apparently its correct. Thanks for your implementation. Kind regards, Samuel On 4/05/2010, at 2:42 AM, John W. Krahn wrote: > Samuel Williams wrote: >>

Re: Teaching Perl

2010-05-03 Thread Shlomi Fish
Hi John, On Monday 03 May 2010 17:42:16 John W. Krahn wrote: > Samuel Williams wrote: > > Dear Friends, > > Hello, > > > It would also be great if someone could rewrite the Perl source code > > > > example so that it is as close as possible to the C implementation: > > http://programming.do

Re: Teaching Perl

2010-05-03 Thread Shlomi Fish
On Monday 03 May 2010 15:08:34 Samuel Williams wrote: > Dear Friends, > > I'm looking for some help from the Perl community. I hope this is the right > place to ask for information. It may be, but you may also wish to ask on advoc...@perl.org > > I'm putting together a website aimed at high sch

Re: Teaching Perl

2010-05-03 Thread John W. Krahn
Samuel Williams wrote: Dear Friends, Hello, It would also be great if someone could rewrite the Perl source code example so that it is as close as possible to the C implementation: http://programming.dojo.net.nz/languages/c/index /* Include the standard input / output functions *