On Fri, Mar 30, 2001 at 07:09:32PM -0800, Sean McAfee wrote: > Recently I began toying with the idea of writing a JAPH composed entirely > of double-characters; that is, a program for which the i-th character > is the same as the (i+1)-th character, for all even i. I worked on it > for less than an hour before concluding that such a program is probably > impossible, mainly because no Perl built-in is made of double-characters, > nor is any operator (except qq). And: ++ -- ** && || .. > But I figured I would turn the challenge > over to the FWP crowd and see if anyone can surprise me. > > An additional hindrance is that the $= variable seems to implicitly > convert to a number any scalar assigned to it. Observe: > > perl -le '$= = "testing"; print $=; $= = \5; print $=' > > On my machine this prints: > > 0 > 135059684 > > Is this behavior documented anywhere? $= is the current page length, in lines, so anything other than a number wouldn't be meaningful. Several of the special vars behave this way, behave they have a restricted domain of reasonable values. It's not explicitly documented, though. Ronald ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe