Thanks for the reply sir. But i am still stuck with
the same old problem since the system() function isn't
working & the manpages aren't of much help either. 

Giving below an account of what my programs are &
their output:

####PERL PROGRAM####
#assign.pl#
#!/usr/bin/perl 
use strict;
use warnings;
print "enter the first number\n";
my $x = <STDIN>;
chomp $x;
print "enter the second number\n";
my $y = <STDIN>;
chomp $y;
my $z = system("assign.f",'$x','$y');
print "Output of the two numbers is:\n";
print $z,"\n";
exit;

#output#
>$perl assign.pl
enter the first number
2
enter the second number
4
Can't exec "assign.f": Permission denied at assign
line 10, <STDIN> line 2.
Output of the two numbers is:
-1

#####FORTRAN PROGRAM#####
c      assign.f
        WRITE(*,*) "ENTER FIRST NUMBER"
        READ(*,*) x
        WRITE(*,*) "ENTER SECOND NUMBER"
        READ(*,*) y
        z = x+y
        WRITE(*,*)z
        END
   
#output#
>$g77 assign.f
>$ ./a.out
 ENTER FIRST NUMBER
2
 ENTER SECOND NUMBER
4
 OUTPUT OF THE TWO NUMBERS IS:
  6.


Can you suggest sir what should be my approach to this
problem. Waiting for an early response from you.
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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to