summaryrefslogtreecommitdiff
path: root/testfunc2.pl
diff options
context:
space:
mode:
Diffstat (limited to 'testfunc2.pl')
-rw-r--r--testfunc2.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/testfunc2.pl b/testfunc2.pl
new file mode 100644
index 0000000000..7eeaf92ffb
--- /dev/null
+++ b/testfunc2.pl
@@ -0,0 +1,22 @@
+sub foo
+{
+ my $i = shift(@_);
+
+ if ($i) {
+ my $a = "zeev";
+ } else {
+ my $b = "andi";
+ }
+}
+
+
+sub bar
+{
+ my $i = shift(@_);
+
+ foo($i);
+}
+
+for ($i=0; $i<1000000; $i=$i+1) {
+ bar($i);
+}