Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    my $x = 1;
    sub foo { print("[$x]\n"); }
    BEGIN { foo(); }  # Prints "[]" and gives an undefined warning.