but however wrote:

> Hi,
> I compiled a simple program with perl. But I ran into some problems.
>
> sh: campusUnderAttack.out: bad number
>
> I try to execute a program and input the result to antother file
> "campusunderAttack.out"
> like this:
>
> #!/usr/bin/perl
> #
> # Run campus scenario and plot result
> #
>
> #run 'campus network under attack'
> print STDERR "Running campus under attack scenario...\n";
> #`java SSF.Net.Net 57600 campusUnderAttack.dml >& campusUnderAttack.out`;
>
> I executed this program under Unix (sun) with bash shell.
>
> Thanks,
>
> wenpeng

I'm a little unclear on the problem here.  It doesn't seem to be a Perl
issue.  I tried the Perl code from the above, and it gave exactly the output
I would expect:

Greetings! E:\d_drive\perlStuff>perl -w
print STDERR "Running campus under attack scenario...\n";
^Z
Running campus under attack scenario...

Greetings! E:\d_drive\perlStuff>

Are you trying to mix shell and Perl?

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to