Perl in Ruby on Rails projects – gugod’s blog

Perl programs are potent workers that works understandably uniquely most luxurious suited for school-book conversion tasks. One of my $client_project requires importing a selfless school-book weigh that’s pronto obtainable in either Access DB classify or in CSV files. I reflecting: dialect mayhap a perl program can clear up this on the double.
The pander to to the conclusion is properly honest:
some program converts the school-book weigh into yaml files
write a script/runner -based Rails lay out to cross those yaml files, and then proffer form records with ActiveRecord, or alternatively, loading those yaml files as fixtures.
And the calculate suited for that is of clearly, the almighty CPAN.
Thanks to the actuality that YAML is in Ruby stuff library.

This pander to has been working suited for two of my $client_projects and I even look as if to be jubilant and assurance with it.
I weigh that Text::CSV::Slurp is surely bully boy, uniquely when CSV airfield values contains newlines. One merely needs to do a himself school-book gist, the other needs to do it in a always bases (to habituate legacy set output) and it’s up and on-going smoothly. Plus perl is built-in on the Linux server, and I happened to be surely uneventful with the Perl argot – I detect no calculate that I sine qua non do it with merely Ruby.
It’s not that it’s unlit of the query to be done with Ruby, but it can be surely in all likelihood done with Perl.

Comments are closed.