[JOB] Perl Software Developer and Database programmer

Lusercop `the.lusercop' at lusercop.net
Wed Feb 22 22:23:22 GMT 2006

On Wed, Feb 22, 2006 at 05:39:50PM +0000, Andy Armstrong wrote:
> On 22 Feb 2006, at 17:08, Lusercop wrote:
>> In which case, why are you needing to localise it? Any situation where
>> you need to localise it means that the scope of it is too large.
> it's nice to be able to write subs that look map or grep - which  
> means not trashing $_.

But not necessary. And the hacks to do it can sometimes be not worth the

>> I'd humbly suggest that this "makes the code more fragile", but perhaps
>> I'm just talking as someone whose main commercial programming experience
>> up to a year ago was maintenance programming.
> This from the man who suggested faking |local| using |my| and ended  
> up with less robust, more obscure code :)

Er, no. I suggested not using globals, but if you absolutely HAD to use
globals then doing it explicitly. And I think it's less obscure.

Perlfaq would seem to agree with me, in general.

Lusercop.net - LARTing Lusers everywhere since 2002

More information about the london.pm mailing list