RE: Returning perl hashes

2007-01-26 Thread Suresh Govindachar
 
   David.Fishburn asked 
  
  > Vim 7
  > WinXP SP2
  > 
  > Is it possible to return a Perl hash as a Vim List or
  > Dictionary?
  
  I can say that Vim's support for scripting in perl is such that
  whatever you are trying to do can be done.  However, ...
   
  > I am pretty new to Perl but need it's features for my extension.

  I have no clue what you mean by:

  > I need to return rows and columns of data which is perfect for a
  > Vim List or Dictionary.
   
  So if you want to see an indication of how "it" can be done,
  please indicate how you want some simple hash such as {a=>1, b=>2,
  c=>3} to end up inside vim script.

  --Suresh
  



Re: Returning perl hashes

2007-01-23 Thread Vigil

Is it possible to return a Perl hash as a Vim List or Dictionary?

I am pretty new to Perl but need it's features for my extension. I need to
return rows and columns of data which is perfect for a Vim List or
Dictionary.


I don't know what format that is but if Data::Dumper doesn't help (I don't 
think it will for your purpose), you'll have to manually go through the hash 
and print the key - value pair out in the correct format that you want.


Maybe there's something here that will help:

http://search.cpan.org/search?query=vim&mode=all

--

.