in reply to Re^3: parse lisp style config
in thread parse lisp style config
#!/usr/bin/perl use strict; use warnings; sub outer { my ($x) = @_; sub inner { return $x + 1 } return inner() } print outer(12), "\n"; # 13 print outer(42), "\n"; # 13 !!
Also, you'll get a warning:
Variable "$x" will not stay shared at 1.pl line 9.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: parse lisp style config
by vincentaxhe (Scribe) on Nov 29, 2024 at 01:41 UTC |