"max" <max / solution-x.com> schrieb im Newsbeitrag news:newscache$bany6h$7v9$1 / news.sil.at... > 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 oops, i forgot this point. sorry! result = `perl test.pl 1` regards robert > > > regards > max > > Robert Klemme wrote: > > > > > "max" <max / solution-x.com> 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 erl 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 > > >