Help for this page

Select Code to Download


  1. or download this
    for (1..3) {
        no strict 'refs';
    ...
        # or:  my $ref = "str$_";  # this is a purely symbolic reference, 
    +access is the same as above
        print "The string is $$ref"; 
    }
    
  2. or download this
    #!/usr/bin/perl -l
    
    ...
        my $ref = \${'str'.$_};
        print "The string is $$ref"; 
    }