- or download this
package apackage;
my $test="my_variable_name";
...
$my_variable_name = "A new value";
print "the value of \$my_variable_name = $my_variable_name\n";
print "the value of the package variable = $apackage::my_variable_name
+\n";
- or download this
the value of $my_variable_name = the value I set
the value of $my_variable_name = A new value
the value of the package variable = the value I set
- or download this
package apackage;
my $test="my_variable_name";
...
$my_variable_name = "A new value";
print "the value of \$my_variable_name = $my_variable_name\n";
print "the value of the package variable = $apackage::my_variable_name
+\n";
- or download this
Can't declare scalar dereference in our at -e line 5, near "$test ="
Execution of -e aborted due to compilation errors.