On Fri, Jul 25, 2008 at 02:46:59PM -0500, Dave Rolsky wrote:
> Case in point, who the heck actually uses the store modifier?

Me.  :)

> Why not just use $m->scomp()?

Because it doesn't allow for a return value.


If you're curious, I have a component that searches for an image in
various places, manipulates it a bit, stores the result and returns the
location of that stored image.  All the while, it outputs debugging
information on stdout, which the caller is then free to dispose of by
store-ing it into a dummy variable.

It probably sounds convoluted, but it does the job well, without the
need to sprinkle if()s everywhere or define a global "debug" function.


Anyway, once I found what the bug was, I merely turned autoflush() off
and went on my merry way.  So, I really don't mind if this goes on
unfixed.  (Documenting it would probably be a good idea, though.)


Thanks for your prompt reply!


-- 
Randal can write one-liners again.  Everyone is happy, and peace spreads
over the whole Earth.
                -- Larry Wall in <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to