Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I inhereted this piece of code:
The code is on a win32 sysytem and works great at passing some parameters to and launching an executable.my ($ids); $ids = selected_ids($c); my ($cnt) = scalar @{$ids}; my @xoffset = (800,20,20,20,20); my @yoffset = (800,500,500,500,500); if ($OS_TYPE eq 'mswin32') { # Win32 if ($cnt>=1 && $cnt <=25): {launch_bd('glimmer.exe',: 'glimmer ' . join(' ', @{$ids}[(1..$cnt)]));
I tried to add one more parameter to pass by putting a comma after the "]" and add this :
no luck$xoffset[0],$yoffset[0]));
Thanks,
Mark
Edit by tye, add CODE tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing array values
by shenme (Priest) on Aug 11, 2003 at 08:34 UTC | |
|
Re: passing array values
by NetWallah (Canon) on Aug 11, 2003 at 18:02 UTC |