Re: Windows XP ppm and perldoc problems




The problem seem to be specific to passing arguments to system call.

Let' say we create a perl script called sys_args.pl that contanis the
next two lines:
#my $opt_exe = "ppm3-bin";
system($opt_exe, @ARGV);

And also we add at the top of ppm3-bin next two lines:
my $numargs = scalar @ARGV;
print "in ppm3_bin, numargs = $numargs\n";

The command line
sys_args.pl
produces output
in ppm3_bin, numargs = 1

The command line
sys_args.pl 1 2 3
produces output
in ppm3_bin, numargs = 1

Jovo

.



Relevant Pages

  • Re: WIN32 PPM and perldoc problems
    ... Let' say we create a perl script called sys_args.pl that contanis the ... The command line ... in ppm3_bin, numargs = 1 ...
    (comp.lang.perl.misc)
  • Re: Windows XP ppm and perldoc problems
    ... Let' say we create a perl script called sys_args.pl that contanis the ... The command line ... in ppm3_bin, numargs = 1 ...
    (perl.beginners)
  • Re: Windows XP ppm and perldoc problems
    ... Let' say we create a perl script called sys_args.pl that contanis the ... The command line ... in ppm3_bin, numargs = 1 ...
    (perl.beginners)
  • Re: WIN32 PPM and perldoc problems
    ... Let' say we create a perl script called sys_args.pl that contanis the ... The command line ... in ppm3_bin, numargs = 1 ... The expected output is: ...
    (comp.lang.perl.misc)