data types
This commit is contained in:
parent
87ae4602f3
commit
2ba7140b77
19
cli/datatypes.pl
Normal file
19
cli/datatypes.pl
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/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";
|
Loading…
Reference in New Issue
Block a user