From: Daniel Carrera Date: 2003-01-18T09:51:21+09:00 Subject: Re: Automating Perl -> Ruby translation? On Sat, 18 Jan 2003, Hal E. Fulton wrote: > Well, I'd settle for a very crude tool. [snip] > You'd be surprised how much progress I > made just by saying :%s/my $//g in vi. I wonder how hard it'd be to make a "very crude" tool. That might be more doable. Let's see, off the top of my head: 1.- Delete 'my $', 'my @', 'my %'. 2.- Delete '{' 3.- Replace '}' by 'end'. 4.- Make a list of methods and reverse the 'words' to create a more OO syntax: e.g. sort @array => array.sort > As for XS: I don't know what it is. A tool for making Perl extensions in C, akin to SWIG but Perl-specific. I like SWIG better. > I do have two or three things I want > to translate. If I had a tool, I would > use it, and others might also. Send me one of them (the simplest one). I'm curious as to how difficult a crude tool would be. Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137