www.webdeveloper.com
Results 1 to 6 of 6

Thread: How to run this perl script locally

  1. #1
    Join Date
    Mar 2005
    Posts
    208

    Arrow How to run this perl script locally

    Hi guys i want to run this perl scrip locally but when i run it i get the following error :


    Code:
    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
    
    
    Can't locate UMR/HTMLUtil.pm in @INC (@INC contains: /afs/software/umrperl/libs c:/Perl/lib c:/Perl/site/lib .) at c:\inetpub\wwwroot\cgi-bin\jukeee.pl line 4.
    BEGIN failed--compilation aborted at c:\inetpub\wwwroot\cgi-bin\jukeee.pl line 4.
    I am running IIS5 and it support php and perl. Could any expert help me modify this script to work locally.Thanks
    Code:
    #!/umr/bin/perl
    
    use lib "/afs/software/umrperl/libs";
    use UMR::HTMLUtil;
    
    require "cgi_handlers.pl";
    &get_request;
    print "Content-type: text/html\n\n";
    
    
    sub Sanitize
    {
       local ( $TEXT ) = @_;
    
       $TEXT =~ s/~!/ ~!/g;
       return $TEXT;
    }
    
    
    
    
    $clip = &Sanitize( $rqpairs{'song'} );
    $clip="http://localhost/jukebox.html";
    #$clip2= &Sanitize( $rqpairs{'song2'} );
    #$clip3 = &Sanitize( $rqpairs{'song3'} );
    #$clip4= &Sanitize( $rqpairs{'song4'} );
    #$clip5 = &Sanitize( $rqpairs{'song5'} );
    #$clip6 = &Sanitize( $rqpairs{'song6'} );
    
    if($clip eq "ID1")
    {
    $clip="Admin";
    }
    
    $SUBJECT[0] = '"';
    $SUBJECT[1] = $NAME;
    $SUBJECT[2] = '- Summer/Co-op Job Report"';
    
    
    
    
    print " <body background=#BOC4DE bgcolor=#BOC4DE ";
    print "\n";
    print "<CENTER><H1></H1></CENTER>";
    print "<center><h1>Song lists<h1></center>";
    	
    print"<br>";
    print "$clip";
    print "\n";
    
    
    
    
    
    print "\n";

  2. #2
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    As per the CGI Error, it appears that HTMLUtil.pm is nowhere to be found in the perl library. Have you installed it?

  3. #3
    Join Date
    Mar 2005
    Posts
    208

    Arrow

    Quote Originally Posted by CyCo
    As per the CGI Error, it appears that HTMLUtil.pm is nowhere to be found in the perl library. Have you installed it?
    Many thanks for u reply. could u tell me where to get HTMLUtil.pm and how to install it ? I had this in my schoool server many years back but now i want to test it locally so i do not know what things i need beside perl.Thanks

  4. #4
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    I surfed over to cpan and I did not find any modules named HTMLUtil. I did find one named HTMLUtils

  5. #5
    Join Date
    Mar 2005
    Posts
    208

    Arrow

    Quote Originally Posted by CyCo
    I surfed over to cpan and I did not find any modules named HTMLUtil. I did find one named HTMLUtils
    Many thanks for finding me this link. do u think this is a good replacment for this script to run ? Is there any alternative to this since installation of this is very complex.furthermore could u tell me what this htmlutils is doing ?
    Thanks
    Last edited by method; 07-19-2005 at 04:40 PM.

  6. #6
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    I'm unfamiliar with the module. So, I don't know what application value it lends to your script.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles