Help for this page

Select Code to Download


  1. 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";
    
  2. 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";
    
  3. 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.
    
  4. or download this
    $/  =  q#(\w)#  ;  sub  sig { print scalar reverse  join  ' ',  @_  } 
    + sig
    map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu
    +" );