Peter Scott wrote:
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wc -Sx- Jones) writes:
This edition I will show you how to declare variables WITHOUT using *my* $var everywhere...
[snip dangerous advice]
This is reprehensible.
#! /usr/bin/perl eval 'exec perl -S $0 "$@"' if 0;
use strict; use warnings;
print<<_My_thoughts_; Good or bad - beginners need to see it. I am "grown-up" enough to take the flames for my actions (and so far there have been many.)
There have been a lot of corrections, but I have seen very few messages that I would consider flames. Don't take it too personally.
Perhaps a different model of providing tutorials would work better. A model that worked well in the C++ community is the GoTW (Guru of The Week: see <http://www.gotw.ca/gotw/index.htm>).
In this model you simply pick a topic that seems interesting or relevant. Create a problem that illustrates it and post it to the list. It could be a simple question (eg. When should you use package variables vs lexical variables) or it could be in the form of a coding exercise (eg. Write a program to reverse a text file. Write a version designed for efficency. Write a version that is as compact as possible. Write a version that is as unique as possible.)
Once the problem is presented the whole community gets to teach. After a suitable amount of time you write a summary. Perhaps you had a particular solution in mind that no one thought of; you can now present it. Perhaps you realise that the solution you originally though of is not as good as something someone else came up with. It doesn't matter. The whole community participates. All you have to do is be a good facilitator, and have the time and patience to summarize all the submitions.
There was a perl gotw list for a while, but it died. I think one of the problems it had was that the problems were too big. Ideally the problems should be easily managable and easily completed within a single afternoon, but not too simple. They should also as much as possible be relevant and usefull, and on-topic for this group.
Just an idea.
Regards, Randy.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>