summaryrefslogtreecommitdiffstats
path: root/Code/Perl/func_malloc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Code/Perl/func_malloc.pl')
-rwxr-xr-xCode/Perl/func_malloc.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/Code/Perl/func_malloc.pl b/Code/Perl/func_malloc.pl
new file mode 100755
index 0000000..5340c82
--- /dev/null
+++ b/Code/Perl/func_malloc.pl
@@ -0,0 +1,18 @@
+#!./perl -w
+
+sub func_c {
+ print "Function C\n";
+}
+
+sub func_b {
+ print "Function B\n";
+ my $b = "B" x 100_000;
+ func_c();
+}
+
+sub func_a {
+ print "Function A\n";
+ func_b();
+}
+
+func_a();
OpenPOWER on IntegriCloud