"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator * (Multiplies Two Numbers / Resolves Reference)

Operator *

Multiplies two numbers. e.g.

my $var = 50 * 2;
say $var;
// PRINTS
// 100

Resolves reference. e.g.

// make a variable
my $p = "Hello";
// make a pointer to it
my $test = &$p;
// print it -- notice it will print it
// with a {Ref;Depth=1} ? thats because its telling
// you this is a reference
say $test;
// PRINTS
// {Ref;Depth=1}

// This time lts resolve the pointer
// so $test will appear as if $p was
// there instead
say *$test;
// PRINTS
// Hello

This can also be used to resolve function param pointers like:

my $p = "Hello";
Foo(&$p);
Function Foo($var)
{
    say $var; // {Ref;Depth=1}
    say *$var; // Hello
}

We can also resolve it by the function itself like:

my $p = "Hello";
Foo(&$p);
Function Foo("*" $var) // * on param causes a ref resolve
{
    say $var; // Hello
}

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org