|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T l
Length: 793 (0x319)
Types: TextFile
Names: »local.t«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
└─⟦b5330643c⟧ »./cops/perl-4.019/perl.tar.Z«
└─⟦2b9a58213⟧
└─⟦this⟧ »perl-4.019/t/op/local.t«
#!./perl
# $Header: local.t,v 4.0 91/03/20 01:53:29 lwall Locked $
print "1..20\n";
sub foo {
local($a, $b) = @_;
local($c, $d);
$c = "ok 3\n";
$d = "ok 4\n";
{ local($a,$c) = ("ok 9\n", "ok 10\n"); ($x, $y) = ($a, $c); }
print $a, $b;
$c . $d;
}
$a = "ok 5\n";
$b = "ok 6\n";
$c = "ok 7\n";
$d = "ok 8\n";
print do foo("ok 1\n","ok 2\n");
print $a,$b,$c,$d,$x,$y;
# same thing, only with arrays and associative arrays
sub foo2 {
local($a, @b) = @_;
local(@c, %d);
@c = "ok 13\n";
$d{''} = "ok 14\n";
{ local($a,@c) = ("ok 19\n", "ok 20\n"); ($x, $y) = ($a, @c); }
print $a, @b;
$c[0] . $d{''};
}
$a = "ok 15\n";
@b = "ok 16\n";
@c = "ok 17\n";
$d{''} = "ok 18\n";
print do foo2("ok 11\n","ok 12\n");
print $a,@b,@c,%d,$x,$y;