> > Eeek. A map in void context! Please don't do that. > > If I do not sound inane, could you please clarify the > following: > > a) Why do perl gurus exhort, not to use 'grep' or 'map' > functions under void context? >
Do you work 80 hours a week for no pay (void context)? Grep, map and others take many CPU cycles to build their return values. In some situations, this is a significant overhead - that is simply discarded when the instruction ends. Thus, this extra time benefits you not. Besides, for a data input of something like 100Mb you require at least 200Mb. I suggest you don't use grep/map etc in void context, and devote the time to SETI or some similar 'idle' time processing. > b) What other functions, are to be avoided in 'void' > context? grep(), map(), qx(), sort(), abs(), atan2() ... just about every function going actually. Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]