Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^5: How should named paramater keys be named?

by tonyc (Pilgrim)
on Jul 13, 2011 at 07:48 UTC ( #914073=note: print w/replies, xml ) Need Help??

in reply to Re^4: How should named paramater keys be named?
in thread How should named paramater keys be named?

That behaviour of Imager::Color would be a bug, given the documentation.

But I can't reproduce it:

tony@mars:.../git/bse$ perl -MImager -le '$c = Imager::Color->new(0, 0 +, 255); print join ",", $c->rgba' 0,0,255,255

Replies are listed 'Best First'.
Re^6: How should named paramater keys be named?
by Corion (Pope) on Jul 13, 2011 at 07:52 UTC

    Maybe the problem was in my subsequent use of the colour - I have to look at the code at home to see what really triggered the behaviour in the program. Looking at the code in Imager::Color, I don't see any reason why it shouldn't behave as the documentation says.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://914073]
[stevieb]: I think that placing the * in C when dealing with pointers is akin to keeping separated the circumfix op from the inner ref in Perl: @{ $aref };, which is all personal preference. In perl, I'm good. C, don't know what I like
[stevieb]: ...yet. Still too newbie

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-01-24 02:31 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (200 votes). Check out past polls.