LPM: perl & c++
Mik Firestone
fireston at lexmark.com
Thu Apr 6 07:27:55 CDT 2000
Ths stupid simple way of doing this is to cause your perl program to write the
values out to a file ( one element per line ) and have your c++ program read
the file.
You could even get fancy and send the file name as the single command line
parameter to your c++ program.
Mik
On Wed, 5 Apr 2000 repett0%sac.uky.edu at interlock.lexmark.com wrote:
>
> Would anyone happen to know of the best way to get input to a c++ program.
>
> 1) I create an array of integers in perl
> 2) I pass that array as a command line arg to a c++ prog
>
> Problems
> 1) the array is up to 100,000 ints
> 2) my c++ prog takes about 4 hours to run. I always run our of space on
> my account before I can tell it worked.
>
> Im saying this doesn't work, but Im sure yes or no. So if someone know
> the proper way please share...
>
> Thanks
> Ron Petty
>
>
>
--
Mik Firestone fireston at lexmark.com
When I become an Evil Overlord:
When the rebel leader challenges me to fight one-on-one and asks, "Or are you
afraid without your armies to back you up?" My reply will be, "No, just
sensible."
More information about the Lexington-pm
mailing list