Skip to content

Instantly share code, notes, and snippets.

@tyru
Created March 6, 2009 13:48
Show Gist options
  • Select an option

  • Save tyru/74912 to your computer and use it in GitHub Desktop.

Select an option

Save tyru/74912 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
local $\ = "\n";
1->[0] = 100;
print 1->[0]; # => 100
print @{main::1}; # => 100
push @{1}, qw(foo bar);
print join ', ', @{main::1}; # => 100, foo, bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment