Re: [Perl-unix-users] Re: exec list and Getopt:Long don't get along

2003-02-12 Thread Andy_Bach
I'm running on unix (5.6) and that is a cutnpaste of my working script. 'course it wrapped along the way ... what system are you useing? Did you 'unwrap' the array assignment line? What failure did you get? I didn't ask the question, the spaces should be okay, but it also works w/o them: my @

[Perl-unix-users] Re: exec list and Getopt:Long don't get along

2003-02-12 Thread Andy_Bach
This works: #!/usr/bin/perl -w use strict; my @CmdList = ('/tmp/hello.pl', ' -p ', '"this is my parm"', ' -m ', '"this is my message"', ' -o ', '"this is my option"', " data1 data2 data3 data4 data5"); print "cmd: ", @CmdList, "\n"; exec "@CmdList"; #!/usr/bin/perl -w use vars qw($opt_m $opt_o $