- or download this
N_scalars("foo",5);
--yields--
...
$foo_3 = '';
$foo_4 = '';
$foo_5 = '';
- or download this
my @foo;
- or download this
open FH, 'foo.txt' or die "$!: can't open foo.txt\n";
my @file = <FH>;
close FH;
- or download this
foreach my $line (@file) {
print $line;
}
- or download this
foreach (@file) {
print $_;
}
- or download this
print foreach @file;
- or download this
print @file;
- or download this
for my $i (0..$#file) {
print $file[$i];
}
- or download this
for (0..$#file) {
print $file[$_];
}
- or download this
print for @file;
- or download this
print @file;
- or download this
arb_scalars("alfa","bravo","charlie");
--yields--
$alpha = '';
$bravo = '';
$charlie = '';
- or download this
my %word = (
alpha => 'a',
bravo => 'b',
charlie => 'c',
);
- or download this
print $word{'charlie'};