Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $bar = "foo";
    
    print $$bar;
    
  2. or download this
    my %vars = ( the_var_i_want => 'this is the actual value' );
    chomp (my $the_name = <STDIN>);
    print $var{"${the_name}_i_want"};