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;
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;
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;
madhurima das [EMAIL PROTECTED] asked:
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.
system() won't work the way you want to use it. From the manpage:
The return value is the exit
Can you try with backtick or qx[ ] ?
my $z = `assign.f $x $y`;
hth.
Can't exec assign.f: Permission denied at assign
line 10, STDIN line 2.
Output of the two numbers is:
-1
--Muthu
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Jul 7, madhurima das said:
#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');
Many things wrong here:
1. system() does NOT return the
On Wed, 6 Jul 2005, madhurima das wrote:
Kindly tell the pseudocode to solve the following
problem:
An user input is provided to a perl program by
STDIN. This input is utilised by a fortran program to
perform some function. How do i connect both the
programs get the output from the fortran
madhurima das [EMAIL PROTECTED] asked:
An user input is provided to a perl program by STDIN. This
input is utilised by a fortran program to perform some
function. How do i connect both the programs get the output
from the fortran program to the user via the perl program itself.
On 7/6/05, Chris Devers [EMAIL PROTECTED] wrote:
On Wed, 6 Jul 2005, madhurima das wrote:
Kindly tell the pseudocode to solve the following
problem:
An user input is provided to a perl program by
STDIN. This input is utilised by a fortran program to
perform some function. How do i