|
|
| "be consistent" | |
| PerlMonks |
Re: Re: Re: I don't use printf enoughby sauoq (Abbot) |
| on Oct 25, 2003 at 08:14 UTC ( #302041=note: print w/ replies, xml ) | Need Help?? |
|
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.";
In Section
Meditations
|
|
||||||||||||||||||||