- or download this
my $test="my_variable_name";
my $default_value="the value I set";
...
print "the value of \$my_variable_name = $my_variable_name\n";
$my_variable_name = "A new value";
print "the value of \$my_variable_name = $my_variable_name\n";
- or download this
my $test="my_variable_name";
my $default_value="the value I set";
...
print "the value of \$my_variable_name = $my_variable_name\n";
$my_variable_name = "A new value";
print "the value of \$my_variable_name = $my_variable_name\n";
- or download this
$ perl symbol.pl
Global symbol "$my_variable_name" requires explicit package name at sy
+mbol.pl line 12.
Global symbol "$my_variable_name" requires explicit package name at sy
+mbol.pl line 13.
Global symbol "$my_variable_name" requires explicit package name at sy
+mbol.pl line 14.
Execution of symbol.pl aborted due to compilation errors.
- or download this
$/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ }
+ sig
map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu
+" );