Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    my @arr1=();
    push(@arr1,3);
    ...
    my $ref2 = \@arr2;
    print "\$ref1: $ref1 \n";
    print "\$ref2: $ref2";
    
  2. or download this
    $ perl reftes.pl
    $ref1: ARRAY(0x80071d38) 
    $ref2: ARRAY(0x80071e40)