[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

perl language binding question - SVN::Repos::open with runtime constructed interpolated scalar

From: Torsten Krah <tkrah_at_fachschaft.imn.htwk-leipzig.de>
Date: Mon, 2 Mar 2009 16:04:56 +0100

Hi.
I want to work with the subversion perl bindings.

SVN::Repos::open('/dir/A')

does woes work fine, path is a non interpolated scalar.

However, i need to parse some data before i know the real path, so actually i
am building my "svnpath" at runtime.

$repopath = STATICPREFIX . "/" . $actualpath;

Using open on this scalar i'll get:

SVN::Repos::open($repopath)

TypeError in method 'svn_repos_open', argument 2 of type 'char const *'

So whats the preferred way to use the perl bindings if the actual path is
determined at runtime and not written like " my path ='/path/repo' " ?
Shouldn't the compiler cast this to const_cast<char*> per default or is this
not supported at all?

Torsten

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
	-- Linus Torvalds

  • application/pkcs7-signature attachment: smime.p7s
Received on 2009-03-02 16:05:56 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.