[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] expectations



Sigh. The problem with these little "oopses" is that if one provides too
much information, one gives the game away.

Keep in mind that expectations come before implementation... one formulates
an expectation and writes the code to meet that expectation.

After that, it's troubleshooting :-)

At 09:05 +0200 8/6/99, Henning Michael Møller-Nielsen wrote:

>
> If you just wanted to print the elements of @INC, each followed by a
> newline you could write

foreach (@INC) {
   print;
   print "\n";
}
>
> But that's just guessing what you are expecting.

expecting a syntax error... Perl takes DWIM to a new level :-)
-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe