Help for this page

Select Code to Download


  1. or download this
    #use strict; #uncomment to kill the code
    my $s = 'foo';
    $$s = 'bar';
    ...
    Output:
    $foo = bar
    $$s = baz
    
  2. or download this
    if ($#-) {
        no strict 'refs';
        print "$#+ matches found", $/;
    ...
            print  "$haystack contains ${$_} at $-[$_]", $/;
        }
    }