Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: How to get string from array from module?

by hippo (Abbot)
on Feb 09, 2018 at 09:59 UTC ( #1208798=note: print w/replies, xml ) Need Help??


in reply to Re: How to get string from array from module?
in thread How to get string from array from module?

I don't see the point of turning @SELECTED_COLOR into a reference and then back again. Why not simply do this:

### NOT NEEDED my $SELECTED_COLOR; ### NOT NEEDED $SELECTED_COLOR =\@SELECTED_COLOR; glColor4f (@SELECTED_COLOR, $volume->color->[3]);

Replies are listed 'Best First'.
Re^3: How to get string from array from module?
by Gilu (Initiate) on Feb 09, 2018 at 13:28 UTC
    Well ... if that was your second day with Perl; everything seems so ... you know! :-) You're absolutely correct - of course! Thanks for the hint!

      Sorry - didn't mean it to sound critical. As the post I replied to just showed some lines in isolation it could well have been the case that there was some benefit to using the reference which we might not have known of. I could (as usual) have phrased it better.

      And if it is only your second day and you are handling stuff like this so well then you will go a long, long way.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1208798]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-02-24 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?