- From: madhu_bioinformatics@xxxxxxxxxxx (Madhurima Das)
- Date: Thu, 7 Jul 2005 12:12:30 +0100 (BST)
I have the following problem:
I need a perl program which asks the user to input
two numbers x & y. The program next calls a fortran
program to do some calculations with the two numbers x
& y & sends the output z back to the perl program. The
perl program next conveys this output z to the user.
My programming approach to this problem is as
print "enter the first number\n";
my $x = <STDIN>;
print "enter the second number\n";
my $y = <STDIN>;
my @z = system("assign.f",'$x','$y');
print "Output of the two numbers is:\n";
#output of assign.pl#
>$ perl assign
enter the first number
enter the second number
Can't exec "assign.f": Permission denied at assign
line 14, <STDIN> line 2.
Output of the two numbers is:
WRITE(*,*) "ENTER FIRST NUMBER"
WRITE(*,*) "ENTER SECOND NUMBER"
z = x+y
WRITE(*,*)"OUTPUT OF THE TWO NUMBERS IS:"
#output of assign.f#
>$ g77 assign.f
ENTER FIRST NUMBER
ENTER SECOND NUMBER
OUTPUT OF THE TWO NUMBERS IS:
So,i'm unable to connect both the programs. Kindly
help with some books or pseudocode or the functions
needed to solve this problem.
Waiting for an early response. Thanking you..
How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com
- Re: query
- From: Chris Devers
- Re: query
- Prev by Date: Re: FAQ
- Next by Date: Re: Query on File::Find
- Previous by thread: Yet another question on perl modules
- Next by thread: Re: query