Help for this page

Select Code to Download


  1. or download this
    package Script::Singleton;
    
    ...
    sub __placeholder {}
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    print "Starting script...\n";
    sleep(10);
    print "I can use \"Singleton.pm!\".\n";
    
  3. or download this
    me@/path/to/my/scripts/$ ./runTest.perl
    Can't locate Script/Singleton.pm in @INC (you may need to install the 
    +Script::Singleton module) (@INC contains: /etc/perl /usr/local/lib/x8
    +6_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_
    +64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/pe
    +rl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64
    +-linux-gnu/perl-base) at ./toy02.perl line 6.
    BEGIN failed--compilation aborted at ./runTest.perl line 6.
    me@/path/to/my/scripts/$