box-o-sand/cli/datatypes.pl

20 lines
264 B
Perl
Raw Normal View History

2011-01-05 03:39:37 +00:00
#!/usr/bin/env perl
use strict;
use warnings;
my $foo = 'foo';
print "\$foo=$foo\n";
my @foo = (1, 2, 3);
print "\@foo=@foo\n";
my %foo = (
1 => 'one',
2 => 'two',
3 => 'three',
);
print "\%foo=" . %foo . "\n";
my $log = *STDIN;
print $log . "\n";