in reply to Re^2: Macro-envy, a snippet.
in thread Macro-envy, a snippet.

Previously, you had one expression and a macro (that was probably defined a long way away). If you're optimizing for the count of the number of expressions, I think you're doing it wrong.

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Replies are listed 'Best First'.
Re^4: Macro-envy, a snippet.
by diotalevi (Canon) on Feb 20, 2006 at 20:20 UTC

    I'd rather have an anonymous macro there. It only needs a name if I'm going to do it multiple times or if it's distracting to have inline.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      If you're only going to do it once, you don't need a macro. It seems to me that you have a solution in search of a problem. If you stop fighting Perl and start working with it, you'll probably have an easier time. :)

      --
      brian d foy <brian@stonehenge.com>
      Subscribe to The Perl Review