Skip to content

Instantly share code, notes, and snippets.

@smujohnson
Created August 22, 2012 16:16
Show Gist options
  • Save smujohnson/3427125 to your computer and use it in GitHub Desktop.
Save smujohnson/3427125 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use Data::Dumper;
my @stuff = ( { a => 1, b => 2} );
# osse
say Dumper keys $stuff[0];
# sjohnson
say Dumper keys %{ $stuff[0] };
@Osse
Copy link

Osse commented Aug 22, 2012

$VAR1 = 'a';
$VAR2 = 'b';

$VAR1 = 'a';
$VAR2 = 'b';

@Osse
Copy link

Osse commented Aug 22, 2012

This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Copyright 1987-2011, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

@Osse
Copy link

Osse commented Aug 22, 2012

   keys HASH
   keys ARRAY
   keys EXPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment