Help for this page

Select Code to Download


  1. or download this
    use lib "/home/avarus/perl/myPackages/";
    my $packageName = "test";
    use $packageName; # does not work, segfaults
    
  2. or download this
    my $file; # needs to be outside the BEGIN block
    BEGIN {
        $file = "Test.pm";
        require $file;
    }