Results 1 to 1 of 1

Thread: Perl6 on Bluehost / use v6;

  1. #1
    Join Date
    Apr 2010
    Posts
    1

    Default Perl6 on Bluehost / use v6;

    Since Perl v6 is kinda like jQuery for the server side i was interested in researching & developing my next web-app based on it.

    So after...
    1. installing "Bundle::Perl6" from cPanel Perl-Modules
    2. including this code in test.pl
      PHP Code:
      #!/usr/bin/perl

      BEGIN {
          
      my $homedir = ( getpwuid($>) )[7];
          
      my @user_include;
          foreach 
      my $path (@INC) {
              if ( -
      d $homedir '/perl' $path ) {
                  
      push @user_include$homedir '/perl' $path;
              }
          }
          
      unshift @INC, @user_include;
      }

      use 
      v6;

      "hello, world".say
    3. and executing
      Code:
      perl ~/perl/test.pl


    ...it said (in console):

    Code:
    Can't locate v6.pm in @INC (@INC contains:
    /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
    /usr/lib/perl5/site_perl/5.8.8 
    /usr/lib/perl5/site_perl 
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi 
    /usr/lib/perl5/vendor_perl/5.8.8 
    /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi 
    /usr/lib/perl5/vendor_perl/5.8.5 
    /usr/lib/perl5/vendor_perl 
    /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi 
    /usr/lib/perl5/5.8.8 .)
    
    at /home2/_username_/perl/test.pl line 3.
    BEGIN failed--compilation aborted at /home2/_username_/perl/test.pl line 3.
    (it would be just another 500-error on web)

    Now, my question is probably obvious, but how do i make it work?
    Last edited by sohin; 04-22-2010 at 03:37 AM. Reason: line number was wrong

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •