in reply to Style question: symref or eval?

Why do you have to turn of strict refs when using a sub-ref? I've never had to...

Assuming the people maintaining your code know references, a sub-ref is what I'd reccomend as being clearer and easier to maintain.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: Style question: symref or eval?
by suaveant (Parson) on Sep 25, 2001 at 21:02 UTC
    I think he is using a string... not a ref to a sub...

    Update - yeah

    # Suppose $op is the name of the sub,

                    - Ant
                    - Some of my best work - Fish Dinner

      Duh! I thought $op was a hashref of subrefs. *smacks forehead*

      Listen to suaveant ... he said what I was trying to say. ;-)

      ------
      We are the carpenters and bricklayers of the Information Age.

      Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.