fork download
  1. my $ref;
  2. {
  3. my @skipper = qw(blue_shirt hat jacket preserver sunscreen); # ref count is 1
  4. $ref = \@skipper; # ref count is 2
  5. print $ref>[2]; # prints jacket\n
  6. }
  7. print $ref>[2]; # still prints jacket\n # ref count is 1
Runtime error #stdin #stdout #stderr 0s 3564KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unrecognized character \xE2; marked by <-- HERE after print $ref<-- HERE near column 12 at prog.pl line 5.