In article <[EMAIL PROTECTED]>, David Muir Sharnoff 
<[EMAIL PROTECTED]> wrote:

> * and, just out of curiousity, what advantage does your module
> * have over a closure?  it seems you have to do more work to get
> * the same effect.
> 
> How so?  I don't use closures that often so maybe I'm missing
> something, but it seems to me that there isn't any similarity
> at all.  The purpose of my module is to save a few characters.

> Instead of:

>  " some string @{[ xyz(abc) ]} "
> 
> You have

>  " some string $xyz{abc} "

okay, that makes sense. i usually don't write it that way so
i didn't think about that.  i use string concatenation to force
scalar context anyway.  i use closures a lot so they don't seem
strange to me, but that's just me.

   " some string " . $xyz->(abc) . " ";

i think Kurt has already presuaded you to use Interpolation though. :)

-- 
brian d foy (one of many PAUSE admins), http://pause.perl.org
please send all messages back to [EMAIL PROTECTED]

Reply via email to