You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2009/03/02 15:04:56 UTC
perl language binding question - SVN::Repos::open with runtime
constructed interpolated scalar
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