On Sat, 2 Feb 2002 00:50:47 -0500, [EMAIL PROTECTED] (Uri Guttman) wrote: > >>>>> "RK" == Rick Klement <[EMAIL PROTECTED]> writes: > > RK> There are at least three elements of Perl Golf that I _do_ > RK> wish beginner programmers would learn: > > RK> 1) Don't stop after finding the first algorithm that solves > RK> a given problem - there may be a better algorithm. > > RK> 2) Don't stop after find the first implementation of an > RK> algorithm - there may be a better way to implement it. > > RK> 3) Read through _all_ the functions, _all_ the operators, > RK> _all_ the syntax, and _all_ the special variables, etc. > > _all_ the command line options
And when all else fails, dark corners of the Source. I think I learned about how the $|-- trick works by having a look at the bits of source (mg.c?) that japhy pointed out; I had heard that it worked but didn't know why, and since perlvar didn't tell me anything specific enough, I RTFS. Upon reading the bits of code that get and set the value of $|, I was enlightened (after thinking a little about it). Cheers, Philip