in reply to Variable Abstraction with strict

The answer is simple: don't do it.

I have never met a problem that needed to be solved by using these dangerous tricks.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Variable Abstraction with strict
by Anonymous Monk on May 28, 2011 at 16:19 UTC

    I agree with you CountZero. This can be avoided.

    Usually this is used for optimizations. Module authors use all kind of tricks that are illegal under use strict pragma.

    Mastering Perl and Advanced Perl Programming books from O'Reilly are full of these tricks. If strict doesn't agree it doesn't mean you should never touch it. :)

    Regards

    Catalin