scalar

Calling 'scalar' on the results of the range operator (..) in Perl

So, I believe this has something to do with the difference between arrays and lists, but I don't understand what's going on here. Can anyone explain how and why Perl treats an expression like (1..4) differently than (1, 2, 3, 4) and @{[1..4]}? $ perl -de1 Loading DB routines from perl5db.pl version 1.31 Editor support available. Enter...

When to return a pointer, scalar and reference in C++?

I'm moving from Java to C++ and am a bit confused of the language's flexibility. One point is that there are three ways to store objects: A pointer, a reference and a scalar (storing the object itself if I understand it correctly). I tend to use references where possible, because that is as close to Java as possible. In some cases, e.g....

Getting Current Date Time for a Random Number Generator's Seed

Preferably as a long. All the example I can find are getting the date/time as a string and not any scalar value. :) ...

MDX Sine Function

Can I use the sine function within MDX? I would like to know the sine of a measure. ...