On Fri, 26 Mar 2010, lmhelp2 wrote:

> 
> Hi Ben,
> 
> I wanted to use your tool ("Perl XML Twig") 
> but I am really NOT familiar with "Perl".
> 
> I first downloaded "Perl": 
> strawberry-perl-5.10.1.1
> 
> Then I downloaded "XML Twig Perl Library": 
> XML-Twig-3.35
> 
> I have tried to put the "XML-Twig-3.35" 
> directory in the 
> "strawberry-perl-5.10.1.1\perl\lib" directory.
> 
> I also copied "Twig.pm" and "Twig.pm.slow" to 
> "strawberry-perl-5.10.1.1\perl\lib".

Hmm.  That's probably missing a step or two.  I *think* XML::Twig has a 
compiled component.  I've heard of, but not used, Strawberry Perl.  It's 
been a while since I used Perl on Windows (especially non-Cygwin), but 
I'd be surprised if Strawberry Perl didn't have some kind of package 
manager.

>From a quick glance at its site, you might follow "standard" Perl 
installation procedure:

cmd>> perl -MCPAN -eshell

Then:

cpan[1]> install XML::Twig

If it fails, you might need:

cpan[2]> notest install XML::Twig


> Then I tried to launch in command line:
> "cmd>> perl xml_split"
> 
> And here is what I got:
> "Can't open perl script 'xml_split': No such 
> file or directory"
> 
> Can you tell me how to proceed to be able to use 
> the "splitter"?
> 
> Also, at the beginning of "xml_split" there is:
> "#!/usr/bin/perl -w"
> but I am unfortunately not working with a Unix machine
> I am working with a Windows one!

If the following returns without error, the XML::Twig module is at least 
loadable.

cmd>> perl -MXML::Twig -e 1

To run the xml_split file, if XML::Twig is loadable, you may just need 
to pass the full path:

e.g. (not sure of the correct path)

cmd>> perl c:\strawberry-perl-5.10.1.1\perl\bin\xml_split

-- 
Best,
Ben

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to