in reply to Re: Re: I don't use printf enough
in thread I don't use printf enough
I'm not sure I understand your comments about @{[ $o->m() ]} putting things in the "wrong" context and ${\ $o->m() } putting things in the "right" context. The method is called in list context in both cases, right? What am I missing?
I thought, that if you needed scalar context, you had to use scalar(). Perhaps ~~ if you are golfing and can get away with it. (I.e. your method isn't returning a reference or a floating point number.)
Heh . . . ${\~~$o->m} . . . Ick! :-)
Edit: Added the text "or a floating point number."
-sauoq "My two cents aren't worth a dime.";
|
|---|