Help for this page

Select Code to Download


  1. or download this
        # reference the parameter directly. Prints Jane's number
        print "ref1 = ", $config->{jane}->{tel_no}, "\n";
    
  2. or download this
        # construct the same symbolic reference locally
        # just to make sure. Still yields nothing!
        $parm_str = "\$" . "config->{jane}->{tel_no}, "\n";
        print "ref3 = ", $$parm_str, "\n";
    
  3. or download this
        $parm_str = "\$" . $config->{jane}->{tel_no};
  4. or download this
        $parm_str = \$config->{jane}->{tel_no};
  5. or download this
        $parm_str = '$config->{jane}->{tel_no}';
  6. or download this
        print "value = ", eval($parm_str), "\n";