From: "Esteban Manchado Velázquez" Date: 2006-10-22T03:00:30+09:00 Subject: Re: calling Perl script from Ruby --98e8jtXdkpgskNou Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 22, 2006 at 02:50:14AM +0900, Peter Michaux wrote: > Hi, >=20 > I have a Perl script that takes an input and outputs a string. I would > like to call this Perl script from my Ruby script and have the string > appear in my Ruby script after. > [...] > Any suggestions? Just do: output =3D `perl myperlscript.pl arg1 arg2` That should do the trick. You also have open3 and others, if you want more fine-grained control of input and outputs. HTH, --=20 Esteban Manchado Vel=E1zquez - http://www.foton.es EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es --98e8jtXdkpgskNou Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFOmA0hYgK5b1UDsERAlnFAJ9sBl0oOh62dzY1yKvCBEej9rkcBwCeKaY5 hrAToi/qW6468+WBK+MwIC0= =jDIv -----END PGP SIGNATURE----- --98e8jtXdkpgskNou--