]> www.fi.muni.cz Git - test/testrepo.git/commitdiff
Skript na testovani variable won't stay shared
authorAdam Libusa <xlibusa@fi.muni.cz>
Mon, 18 Apr 2011 08:04:30 +0000 (10:04 +0200)
committerAdam Libusa <xlibusa@fi.muni.cz>
Mon, 18 Apr 2011 08:04:30 +0000 (10:04 +0200)
variable_wont_stay_shared.pl [new file with mode: 0644]

diff --git a/variable_wont_stay_shared.pl b/variable_wont_stay_shared.pl
new file mode 100644 (file)
index 0000000..624a398
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl -w
+
+print "Content-Type: text/plain\n\njezek.\n";
+my $x = "krtek";
+
+f();
+
+sub f {
+       $x = "tucnak";
+}
+