"Bill Jones" <bill@fccj.org> writes: > > On Thu, Jul 29, 1999 at 10:07:55AM -0400, John Porter wrote: > >> > @s = ("fate", "anoints", "idle", "coders"); @a = ("kill", "apropos", > >> > "pico", "ispell");print join(' ', ($s[0]..$a[0])[83813], > >> > ($s[1]..$a[1])[188889], ($s[2]..$a[2])[123871], > >> > ($s[3]..$a[3])[52995357]); > > > > That is really, truly horrible. It runs out of memory on my 288Mb machine. > > I assume that it prints `whfg nabgure crey unpxre | rot13`... > > > > And is there a sensible use for ".."? > > Thank god! Now I don't feel so bad... I was wondering why my E3000 was > displaying 'Out of Memory!' when I have 256MB and 256MB of swap - watched > both go into zero available land each time I ran that blasted thing. > > Which wasn't too often... =) > > (I was thinking it was some weird pointer, > but does perl even have pointers?) Internally perl sure has pointers. Every scalar is represented by a pointer to a structure called an SV, which contains various info depending on if it's a string, float, etc. When the scalar is a named or my variable even more pointers are involved. Pointers are everywhere, just not where you can play with them at the language level :) Chip -- Chip Turner chip@ZFx.com Programmer, ZFx, Inc. www.zfx.com PGP key available at wwwkeys.us.pgp.net ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe