From: max Date: 2002-12-12T00:18:54+09:00 Subject: Re: calling a perl script works fine. very cool. thank you. prints me 2. how can ruby read the 2? it is somethinng with the stdin or? when i do puts `perl test.pl 1` it outputs 2 nil regards max Robert Klemme wrote: > > "max" schrieb im Newsbeitrag > news:newscache$gcdy6h$q77$1@news.sil.at... > > i would like to call a perl script with ruby. > > so i write puts �perl test.pl� > > these must backquotes like in: > > puts `perl test.pl` > > when you want to write a new perl script, then do it directly in ruby > instead. integrating a big perl script that you don't want to rewrite > seems to me the only case where call integration like this is appropriate. > what features are there in perl that you miss in ruby? > > > how can i do it that my ruby programm gives the scrpit 1 and the perl > > script adds one and gives the result back to my ruby script. > > in perl script (from memory): > > print $ARGV[0] + 1, "\n"; > > regards > > robert >