Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: Re: I don't use printf enough

by sauoq (Abbot)
on Oct 25, 2003 at 08:14 UTC ( #302041=note: print w/ replies, xml ) Need Help??

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."

"My two cents aren't worth a dime.";

Comment on Re: Re: Re: I don't use printf enough
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://302041]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-11-27 06:11 GMT
Find Nodes?
    Voting Booth?

    My preferred Perl binaries come from:

    Results (180 votes), past polls