my @problems = many; foreach(@problems) { s/simple/easy/gi; s/hard/possible/gi; } @problems = solved;

Replies are listed 'Best First'.
RE: problemsolving in perl
by jbert (Priest) on Apr 14, 2000 at 19:49 UTC
    The Feynman Problem solving algorithm:

    1) Write down the problem
    2) Think real hard
    3) Write down the answer

RE: problemsolving in perl
by Anonymous Monk on Apr 15, 2000 at 01:27 UTC
    One day, a novice overheard the master telling a frustrated student th +at confidence was the key to achieving the Perl-nature. A few weeks l +ater, the master paid a visit to the lab in which this novice was stu +dying. - What are you working on? - he asked the novice, to which he frustrat +edly replied: - I'm working on a real-time operating system written in Perl, but for + some reason these coderefs don't seem to work. The master then rewrote the student's entire program logic into 10K of + FORTH code, and said: - Although all things have the Perl-nature, not all programs are for P +erl. To achieve oneness with Perl is also to achieve oneness to that +which is without Perl. This is a great mystery; to understand it is t +o become enlightened. The master then hit the student in the head with a 1000-page copy of _ +The Symbolics Lisp Machine Manual_.