Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use v5.14;
    ...
      say $var;
    }
    say $var;
    
  2. or download this
    use v5.14;
    
    ...
    
    set("Hello world");
    say $global;
    
  3. or download this
    $Foo::Bar::monkey  = 'capuchin';
    @Foo::Bar::monkies = qw( capuchin howler spider );
    ...
    );
    
    $::Hello = "World";  # is an alias for $main::Hello
    
  4. or download this
    {
      package Foo::Bar;
    ...
      say $monkey;   # blank line (it's undefined)
      say $Foo::Bar::monkey;
    }