Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use warnings;
    ...
    our @EXPORT = qw/foo $FOO/;
    sub foo { print @_, "\n" }
    our $FOO = 'bar';
    
  2. or download this
    use warnings;
    use strict;
    use Foo;
    foo $FOO;
    
  3. or download this
    use warnings;
    use strict;
    ...
        : q{ sub foo { print "Perl!\n"  } sub baz { print "Baz!\n" } } );
    foo(); # will it print "Hello!" or "Perl!" ?
    quz(); # will it die or won't it?