Why I Like Perl
First
Previous
ToC
Next
Last
AP - Lexical Scope
default variables live in a 'package'
lifetime is 'current file'
good practice makes lexical variables
visible only in enclosing scope
created on scope entry
destroyed on scope exit
my $x = 3; { my $x = 2; print $x; } print $x;
Slide 42 of 47