Hi.
[snip]
> How can I call a subroutine which is defined in another file i.e.
> the calling
> perlscript and the function are in different files.
[snip]
When asking a new question, consider either a new thread or cutting down the
text of the message, whichever you prefer.. ;)
You are looking a
HI,
Thanks for the various suggestions, as it turned out I had a blank first line
in the program file and when I removed it the backquotes method worked.I do not
know why this happens?
How can I call a subroutine which is defined in another file i.e. the calling
perlscript and the function are
On Tuesday, July 2, 2002, at 11:23 , drieux wrote:
>> I have a c program which takes two commandline arguments (both strings)
>> and
>> prints out a line. If I use system then I am not able to grab the output
>> of the
>> program and if I use backquotes `` then the arguments are also treated a
On Tuesday, July 2, 2002, at 11:23 , Shishir K. Singh wrote:
>> I have a c program which takes two commandline arguments (both strings)
>> and
>> prints out a line. If I use system then I am not able to grab the output
>> of the
>> program and if I use backquotes `` then the arguments are also
>I have a c program which takes two commandline arguments (both strings) and
>prints out a line. If I use system then I am not able to grab the output of the
>program and if I use backquotes `` then the arguments are also treated as
>commands and I get an error.
> Is there any other way to do
my $returnCode=defined($cmd) ? system($cmd." ".join(" ",sort @hitList)) : 0;