Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7648393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:42:16+00:00 2026-05-31T10:42:16+00:00

Using tortoiseSVN client side hook script for pre-commit, we are trying to run some

  • 0

Using tortoiseSVN client side hook script for pre-commit, we are trying to run some unit test cases using Test::Harness’s runtests sub.
In TortoiseSVN’s Setting->Hook Scripts->Configure Hook Scripts (for pre-commit), I provide a batch file name against the “Command Line to Execute:” heading.

This batch file contains, the following line
run.pl unittest.t

run.pl contents

#!/usr/bin/perl -w
use strict;
use warnings;
use Test::Harness;

# Run a single test suite
my @files = @ARGV;
runtests(@files);

So, when I try to commit any code, this script get invoked and failed with the following error message:

Could not execute (D:\Perl589\bin\perl.exe -w D:\t\unittest.t): open3: Can't call method "close" on an undefined value at D:/Perl589/lib/IPC/Open3.pm line 368.

Any idea how can we resolve this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:42:17+00:00Added an answer on May 31, 2026 at 10:42 am

    Does your Windows computer know what to do with scripts that ends in *.pl? That is, if you double click on a .pl file, does it run Perl? This is set in the registry. You set this up under the File Types tab in the Folder Options. In older version of Windows, this could be done via the Tools->Folder Options… menu. I’m not sure where this can be done in Vista and Windows 7.

    Once you have the relationship between Perl and the *.pl files setup, you also have to edit your %PATHEXT% environment variable to include .PL in the list of suffixes that are considered executables.

    Otherwise, you simply have to put the name of the Perl interpreter in your Batch file’s hook script:

     C:\Perl\bin\perl run.pl unittest.t
    

    One more possibility is to use the pl2bat script that came with your Perl installation that turns Perl scripts into Batch files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Python script to implement SVN pre-commit hook : svnlookPath = 'path-to-svnlook' f
I'm already using SVN 1.5, both sever(VisualSVN 1.5.1) and client-side(TortoiseSVN 1.5.1) but we are
I'm using the TortoiseSVN client and Eclipse. When I attempt to commit an Eclipse
I'm running VisualSVN as my SVN server and using TortoiseSVN as the client. I've
Or would a conventional client-server VCS be more appropriate? I'm currently using TortoiseSVN, but
I am using eclipse / subclipse for development. I also have the TortoiseSVN client.
I've been using TortoiseSVN in a Windows environment for quite some time. It seems
I've been running a project for some months now using the same TortoiseSVN repository
How do you branch and merge with Apache Subversion using the TortoiseSVN client?
I'm using a VisualSVN server and TortoiseSVN client. I have set the properties svn:keywords

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.